Convert json file to golang type

Closed - This job posting has been filled and work has been completed.

Job Description

We need golang program that accept json file as input and output golang type. For example:
1) For json string {"ID":1,"name":"Reds","colors":["Crimson","Red","Ruby","Maroon"]}

output will be

type SomeType struct {
ID int
Name string
Colors []string
}

2) For json string ["Crimson","Red","Ruby","Maroon"]

type SomeType []string

Please use "go/format" package to format output and use uppercase names. Feel free to contact us about any details.