A collection of useful Golang utility methods and libraries
Installation
Install:
go get github.com/marksost/go-utils
Import:
import ( goutils "github.com/marksost/go-utils" )
Documentation:
https://godoc.org/github.com/marksost/go-utils
Usage
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