Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/go-generics-example
Example code for Go generics
https://github.com/mattn/go-generics-example
examples generics go golang
Last synced: 5 days ago
JSON representation
Example code for Go generics
- Host: GitHub
- URL: https://github.com/mattn/go-generics-example
- Owner: mattn
- Created: 2021-03-21T13:31:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T12:29:22.000Z (over 1 year ago)
- Last Synced: 2024-11-21T04:11:25.197Z (21 days ago)
- Topics: examples, generics, go, golang
- Language: Go
- Homepage:
- Size: 75.2 KB
- Stars: 1,357
- Watchers: 26
- Forks: 131
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome - mattn/go-generics-example - 07 star:1.4k fork:0.1k Example code for Go generics (Go)
- awesome-golang-repositories - go-generics-example
README
# go-generics-example
Example code for Go generics.
## Usage
```
$ go build -gcflags=-G=3
```## Requirements
Go 1.18 or later
## Third-party packages that support Generics
- [Code-Hex/go-generics-cache](https://github.com/Code-Hex/go-generics-cache) An in-memory key:value store/cache library written in Go 1.18 generics
- [genkami/dogs](https://github.com/genkami/dogs) Dogs is a library that provides some useful types and functions borrowed from functional languages.
- [makiuchi-d/tuple](https://github.com/makiuchi-d/tuple) Definition of n-tuple structs using type parameters.
- [samber/lo](https://github.com/samber/lo) 💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
- [mattn/go-result](https://github.com/mattn/go-result) Something like unwrap in Rust.
- [makiuchi-d/linq](https://github.com/makiuchi-d/linq) LINQ for Go with type parameters.## Advertise
[Go 言語にやってくる Generics は我々に何をもたらすのか](https://zenn.dev/mattn/books/4c7de85ec42cb44cf285)
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)