json-to-go - 在瀏覽器中實時將JSON轉換成Go結構類型
json-to-go - 在瀏覽器中實時將JSON轉換成Go類型定義。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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!