underscore
underscore copied to clipboard
🌟 Useful functional programming helpers for Go
would you accept tests helpers on this repo ? like `parametrize` ? ```golang func parametrize[V any, T any](fn T, allValues [][]V) { v := reflect.ValueOf(fn) for _, a := range...
Some fancy function was added but the documentation website wasn't updated
Adding support for quick pointer conversion. This is much more helpful when setting up structs with pointer fields. So that instead of: ```go v := "value" MyPointerVar = &v //...
Adding support to sort any slice type using `sort.SliceStable`.