json2go

command module
v0.0.0-...-37344bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

json2go

Build Status Go Report Card GoDoc

Json转换为Go语言使用的结构体工具

功能
  • 通过读取json文件生成Golang对应的结构体
  • 可选输出方式为屏幕输出以及写入到文件
使用
安装
go get github.com/usthooz/json2go
cd $GOPATH/github.com/usthooz/json2go
go install
使用方法
  • 帮助信息 帮助

  • 新建json文件

  • 使用命令将json文件转换为Golang结构体,可选择输出到文件以及屏幕

  • 使用默认配置

json2go gen_types
  • 输出到文件
json2go gen_types -out_type=file -out_file=out_types.go
  • 输出到屏幕
json2go gen_types -out_type=print

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址