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