use Genny to generate typed lists, based on Go standard library code

This commit is contained in:
Marten Seemann
2018-03-30 14:52:11 +07:00
parent 51b9820084
commit 7346d12d6c
13 changed files with 309 additions and 80 deletions

View File

@@ -0,0 +1,11 @@
# Usage
This is the Go standard library implementation of a linked list
(https://golang.org/src/container/list/list.go), modified such that genny
(https://github.com/cheekybits/genny) can be used to generate a typed linked
list.
To generate, run
```
genny -pkg $PACKAGE -in linkedlist.go -out $OUTFILE gen Item=$TYPE
```