transform icon indicating copy to clipboard operation
transform copied to clipboard

json to go struct support Outline type definitions

Open wulei opened this issue 4 years ago • 2 comments

{
  "test": {
    "inline": 1
  },
  "world": {
    "hi": {
      "say": 1,
      "age": 20
    }
  }
}

support look like:

type AutoGenerated struct {
	Test  Test  `json:"test"`
	World World `json:"world"`
}
type Test struct {
	Inline int `json:"inline"`
}
type Hi struct {
	Say int `json:"say"`
	Age int `json:"age"`
}
type World struct {
	Hi Hi `json:"hi"`
}

wulei avatar Nov 13 '20 09:11 wulei

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 10 '21 11:02 stale[bot]

这个工具 非常需要,拜托了

Darrenzzy avatar Aug 19 '21 09:08 Darrenzzy