Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://mholt.github.io/json-to-go/
Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
go golang json translates-json
Last synced: about 1 month ago
JSON representation
Translates JSON into a Go type in your browser instantly (original)
- Host: GitHub
- URL: https://mholt.github.io/json-to-go/
- Owner: mholt
- License: mit
- Created: 2014-01-21T18:11:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-27T19:30:53.000Z (4 months ago)
- Last Synced: 2024-03-21T02:32:56.845Z (3 months ago)
- Topics: go, golang, json, translates-json
- Language: JavaScript
- Homepage: https://mholt.github.io/json-to-go/
- Size: 387 KB
- Stars: 4,353
- Watchers: 55
- Forks: 465
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-network-automation - JSON-to-Go - This tool instantly converts JSON into a Go type definition. (Go / NETCONF)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - | - | - | (JSON / Advanced Console UIs)
- awesome-go-projects - JSON-to-Go - Convert JSON to Go struct. (JSON / Standard CLI)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go-with-framework - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go-cn - JSON-to-Go
- awesome-go-stars - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go-with-stars - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- repo-1316-awesome-go-cn - JSON-to-Go
- repo-1211-awesome-go-cn - JSON-to-Go
- awesome-Char - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-reader - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- Go-awesome - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go-cn - JSON-to-Go
- awesome-go-handwritten - JSON-to-Go - Convert JSON to Go struct. (Go Tools / Routers)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Advanced Console UIs)
- awesome-go-cn - JSON-to-Go
- awesome-go-zh - JSON-to-Go
- awesome-go-cn - JSON-to-Go
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- awesome-go - JSON-to-Go - Convert JSON to Go struct. (JSON / Search and Analytic Databases)
- go-awesome-cn-star - JSON-to-Go - zajac/json2go) : 高级`JSON`到`Go`结构的转换。提供能够解析多个`JSON`文档并创建适合所有JSON文档的结构的包。(95) (JSON / SQL 查询语句构建库)
README
[](https://mholt.github.io/json-to-go)
Translates JSON into a Go type definition. [Check it out!](http://mholt.github.io/json-to-go)
This is a sister tool to [curl-to-Go](https://mholt.github.io/curl-to-go), which converts curl commands to Go code.
Things to note:
- The script sometimes has to make some assumptions, so give the output a once-over.
- In an array of objects, it is assumed that the first object is representative of the rest of them.
- The output is indented, but not formatted. Use `go fmt`!Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
### Credits
JSON-to-Go is brought to you by Matt Holt ([mholt6](https://twitter.com/mholt6)).
The Go Gopher is originally by Renee French. This artwork is an adaptation.