Skip to content

junpayment/j2gs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j2gs

Convert a json file to Go struct.

go get -u github.com/junpayment/j2gs
j2gs sample.json

sample.json

{"hoge_hoge": 1, "fuga": "chome"}

You will get go struct below.

type Hoge struct {
  Fuga string `json:"fuga:string"`
  HogeHoge int `json:"hoge_hoge:int"`
}

About

Convert json strings to Go struct

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages