js_to_struct

package
v0.0.0-...-fc17aaa Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonToStructForFolder

func JsonToStructForFolder(folderPath, outPath, pkgName string) error

Types

type JsonToStruct

type JsonToStruct struct {
	ConfPath   string // 配置路径
	OutPath    string // 输出路径
	PkgName    string // 输出包名
	StructName string // 输出结构体名称
}

func NewJsonToStruct

func NewJsonToStruct(confPath, outPath, pkgName, StructName string) *JsonToStruct

func (*JsonToStruct) AutoOutPath

func (jts *JsonToStruct) AutoOutPath()

func (*JsonToStruct) AutoStructName

func (jts *JsonToStruct) AutoStructName()

如果不指定结构体名称的话自动生成结构体名称

func (*JsonToStruct) ToStruct

func (jts *JsonToStruct) ToStruct() error

输出到指定目录

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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