module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Sep 8, 2020
License: Unlicense
Opens a new window with license information.
README
¶
jsondto-go
jsondto-go provides data transfer objects for working with JSON-data.
Installation
go get github.com/thosebeans/jsondto-go/jsondto
Usage
package main
import(
"fmt"
"github.com/thosebeans/jsondto-go/jsondto"
)
func main() {
o := new(jsondto.Object)
o.Put(jsondto.String("ip"), jsondto.String("192.168.2.2"))
o.Put(jsondto.String("port"), jsondto.Int(8080))
data,_ := o.MarshalJSON()
fmt.Println(string(data))
}
API-Docs
API-Docs can be found at go.dev
License
Unlicense
Directories
¶
Click to show internal directories.
Click to hide internal directories.