根据json生成golang struct

楚天乐 3571 0 条

根据json生成golang struct

https://mholt.github.io/json-to-go/

输入

{"age":1, "firstName":"LeTian", "lastName":"Chu", "birthday":"2000-01-30"}

输出

type AutoGenerated struct {
    Age       int    `json:"age"`
    FirstName string `json:"firstName"`
    LastName  string `json:"lastName"`
    Birthday  string `json:"birthday"`
}

打赏

微信打赏

支付宝打赏



与本文相关的文章

发表我的评论
昵称 (必填)
邮箱 (必填)
网址
执行时间: 81.624031066895 毫秒