Releases: DylanMeeus/hasgo
Releases · DylanMeeus/hasgo
Updated handling nils / empty slices
Release notes
- The
All(predicate)
function now returns true if the slice is empty. - Added tests for Go 1.16
- Improved testing for
nil
and empty strings
New functions and new generator flag
New generator flag
You can now specify an output file name for the generated functions such as
//go:generate hasgo -N=myname -T=int64 -S=Ints
New functions
These functions can now be generated:
- Group
- Foldr
- Foldr1
- Scanl
- IsPrefixOf
Fixes
- Foldl function was implemented in Foldr style, now fixed
New functions and golint fixes
New Functions
- Span
- Break
- TakeWhile
- DropWhile
- Drop
Fixes
- golint now runs as part of build script
- fix various golint issues regarding godoc
Adds Elem function generation
Add elem (contains) function generation
Functions, Types and Generator as modules
v1.0.2 Update go mod for funcs
v1.0.1
Update function modules
Initial stable
Release 1.0.0 to indicate stability for Hasgo.