Skip to content

Repository files navigation

Unusual Generics

Run Tests Go Reference License: MIT

Type parameters or Generics in Go designed to reduce boilerplate for container data types like lists, graphs, etc. and functions like map, filter, reduce...

But it's possible to use them in other (I've named them 'unusual') cases. I'm collecting such cases in this repository. What's inside:

Feel free to open issue or pull request to add new one.

Note that until 1.18 release documentation on 'pkg.go.dev' will not be rendered.

About

Collection of unusual generics usecases in Go

Topics

Resources

Stars

55 stars

Watchers

3 watching

Forks

Used by

Contributors

Languages