jsondto-go

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2020 License: Unlicense

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL