Convert json file to golang type

Closed - This job posting has been filled and work has been completed.
Web, Mobile & Software Dev Scripts & Utilities Posted 1 year ago

Hourly Job

As Needed
Less than 1 week
$$

Intermediate Level

I am looking for a mix of experience and value

Details

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.


About the Client

(5.00) 11 reviews

Hong Kong
Kowloon 12:32 PM

6 Jobs Posted
84% Hire Rate, 1 Open Job

$1,297 Total Spent
14 Hires, 0 Active

$24.80/hr Avg Hourly Rate Paid
45 Hours

Member Since Nov 12, 2013