🥂 Std
is an enhanced version of the standard library based the new Generics
feature.
This project aims to provide a set of useful tools and libraries for the Go programming language.
Unlike using interface{}
, this library can be used to create a generic type that can be used to create a type-safe API. And with Generics
, no longer need use reflect
package, so we can benifit from the performance.
go get -u github.com/go-board/std
- clone clone a object
- codec encode and decode
- collections common used collections
- btree btree based map & set
- linkedlist linked list
- queue double ended queue
- cond conditional operator
- constraints core constraints
- fp functional programing
- hash hash a object
- iter iterators
- lazy lazy evaluation & variables
- optional optional values
- ptr convenient pointer operator
- result result values
- service service abstractions
- sets hashset using builtin map
- slices slice functors
- tuple tuple type from 2 to 5