Files
ent/examples/o2orecur
森 優太 e52439c5be cmd/ent: fix //go:generate code generation to match go1.16 (#1300)
* doc: fix github link

* doc: fix Link entgo.io -> github.com/ent

* 🎉 first commit

* update go generate style

* doc: update go get to go install

* doc: update versioning with go install

* restore all

* change generate.go content

* add -mod=mod option

* add -mod=mod option
2021-03-09 22:00:33 +02:00
..
2019-12-09 09:05:05 +02:00

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

go generate ./...

Run Example

go test