json

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TmplDataJsonOptionKey = "gen_json"

Variables

This section is empty.

Functions

This section is empty.

Types

type TmplDataJsonOption

type TmplDataJsonOption struct {
	JsonName  string
	Omitempty bool
}

func ParseJsonOption

func ParseJsonOption(str string) (*TmplDataJsonOption, error)

通过字符串解析json选项, 字符串按照go的json标准库的tag规则. 例:

userName
userName,omitempty

Jump to

Keyboard shortcuts

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