Skip to content

将json生成go的数据结构。Online tool that convert JSON to Go.

License

Notifications You must be signed in to change notification settings

misakafs/json-to-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 19, 2024
90bc92b · May 19, 2024

History

55 Commits
Sep 27, 2021
Jul 10, 2021
Sep 1, 2021
Jun 5, 2021
Sep 1, 2021
Jun 15, 2021
Jun 5, 2021
Jun 5, 2021
Jun 4, 2021
Jul 30, 2021
May 19, 2024
Jun 5, 2021
May 19, 2024
Jun 5, 2021
Jul 10, 2021
May 19, 2024

Repository files navigation

json-to-go

将json生成go的数据结构。Online tool that convert JSON to Go.

Online Link | 地址

Local Develope | 本地开发

suggest use(强烈建议使用) pnpm !!!

  • install pnpm install

  • dev pnpm dev

  • build pnpm build

custom tag | 自定义tag

  • format | 格式
<tag name>:[name method]:[is add omitempty]
<tag名字>:[命名方式]:[是否添加omitempty]
  • name method | 命名方式
  1. original | 原样返回
  2. abcDef | 小驼峰 - 默认
  3. AbcDef | 大驼峰
  4. abc_def | 下划线
  5. Abcdef | 只有第一个字母大写
  6. abcdef | 全都小写
  • examples | 例子

json

form

json:1:true

json:3:false,form:2:true,query:1:false

Features | 特征

  • custom tag | 支持自定义tag
  • custom root object name | 支持自定义根对象名
  • support inline | 支持内联结构
  • support edit | 支持编辑
  • json syntax extension | 对json语法进行了扩展,支持不规范的json
  • json check/format/compress | 支持不规范的json的纠正、格式化、压缩

Reference | 参考

About

将json生成go的数据结构。Online tool that convert JSON to Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published