A collection of useful Golang utility methods and libraries
Install:
gogetgithub.com/marksost/go-utilsImport:
import (
goutils "github.com/marksost/go-utils"
)https://godoc.org/github.com/marksost/go-utils
b:=truefmt.Printf("Type: %T, Value:%v\n", b, b) // Type: bool, Value:trues:=goutils.Bool2String(b)
fmt.Printf("Type: %T, Value:%v\n", s, s) // Type: string, Value:true