json-to-go

1.0.1 • Public • Published

JSON to Go

JSON-to-Go converts JSON to a Go struct

Originally from mholt/json-to-go - All credits to mholt

Translates JSON into a Go type definition. Check it out!

This is a sister tool to 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).

The Go Gopher is originally by Renee French. This artwork is an adaptation.

Readme

Keywords

none

Package Sidebar

Install

npm i json-to-go

Weekly Downloads

9

Version

1.0.1

License

ISC

Unpacked Size

13.6 kB

Total Files

4

Last publish

Collaborators

  • kdtech18