mathx is a wrapper around Go's math package that changes the API to use generics instead of float64.
There has been discussions about adding this to the standard library, but so far there's been no decision. See golang/go#48287 for more information.
go get -u github.com/sebastianappelberg/mathx
MIT