A Golang library for common helper function that I re-implement in many projects, but now in a single place.
Run: $ go get github.com/officer47p/go-helpers
package main
import (
"fmt"
gohelpers "github.com/officer47p/go-helpers"
)
func main() {
s := gohelpers.FloatToString(0.022)
fmt.Println(s)
}
If you use a helper function a lot and you're getting tired of copying and pasting the same code in different projects, you can add it here. Just create a PR and submit your changes. Don't forget to write unit tests for your newly added function