dsh-json-to-go
其他 活跃维护

dsh-json-to-go

uckkk/dsh-json-to-go

支持粘贴任意JSON内容快速生成带标准json tag的Go结构体,自动兼容嵌套对象、数组等复杂结构,支持自定义字段命名规则,生成的代码可直接接入Go项目使用,无需手动编写重复结构体代码

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-json-to-go
git clone https://github.com/uckkk/dsh-json-to-go.git
git clone git@github.com:uckkk/dsh-json-to-go.git
README.md main

dsh-json-to-go · JSON 转 Go

把 JSON 数据转换为带 json tag 的 Go 结构体。纯 Node 实现。

提供的工具

工具 作用
json_to_go JSON → Go struct

安装

dsh plugin add dsh-json-to-go

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-json-to-go"。

用法示例

把这个 JSON 转成 Go 结构体
→ 调用 json_to_go(data={id:1,name:"test"})

安装

dsh plugin add github:uckkk/dsh-json-to-go

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-json-to-go

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。