package for Quick Key-Value Array Sharing and usage in Text based messages
Just import this package
import "github.com/julianfrank/cskv"
New(string) => KV Object
mystr := "one:onevalue,two:twovalue"
mykv:=cskv.New(mystr)
// Output : KV Object
log.Print(mykv.String())
// Output : one:onevalue,two:twovalue
Same Output for log.Print(mykv.Str)
Use(map[string]string) => string in :,: format
mymap:=make(map[string]string)
mymap["one"]="onevalue"
mymap["two"]="twovalue"
mystr := cskv.Use(mymap).String()
[or]
mystr := cskv.Use(mymap).Str
// Output : "one:onevalue,two:twovalue"
- Get/Set per key on KV Object
- JSON Export
MIT