snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
17
examples/o2orecur/README.md
Normal file
17
examples/o2orecur/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Linked-List O2O Relation Example
|
||||
|
||||
An example for a O2O recursive relation between linked-list nodes.
|
||||
Each node in the list can have only of `next`. If a node A points (using `next`) to a node B,
|
||||
B can get its pointer using `prev`.
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
|
||||
### Run Example
|
||||
|
||||
```console
|
||||
go test
|
||||
```
|
||||
Reference in New Issue
Block a user