use a generic linked list (#3487)

This commit is contained in:
Marten Seemann
2022-08-10 18:50:21 +02:00
committed by GitHub
parent ea9de26ed5
commit 7ebe1430ef
17 changed files with 201 additions and 1078 deletions

View File

@@ -1,11 +1,4 @@
# 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
```
(https://golang.org/src/container/list/list.go), modified to use Go generics.