Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/preetam/listgen
Lock-free linked list generator for Go
https://github.com/preetam/listgen
Last synced: 2 months ago
JSON representation
Lock-free linked list generator for Go
- Host: GitHub
- URL: https://github.com/preetam/listgen
- Owner: Preetam
- License: bsd-2-clause
- Created: 2015-01-29T05:15:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T20:47:06.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T06:43:25.486Z (3 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
listgen [![BSD License](https://img.shields.io/pypi/l/Django.svg)](https://github.com/PreetamJinka/listgen/blob/master/LICENSE)
===
listgen is a lock-free ordered linked list generator for Go.Usage
---
First get listgen using `go get github.com/PreetamJinka/listgen`.```
$ listgen -h
Usage of ./listgen:
-cmp="": Comparison function body. The argument names are `a' and `b'.
-list-type="List": List type.
-out="": Output file. Leave blank for stdout.
-package="": Package name to use for the list.
-value-type="": Value type.
```For example, the stringlist implementation is generated using:
```bash
$ listgen \
-package "stringlist" \
-list-type "StringList" \
-value-type "string" \
-cmp "if a < b {return -1}; if a > b {return 1}; return 0;" \
-out "stringlist/stringlist.go"```
License
---
BSD (see LICENSE)