Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶ added in v0.12.6
func SetDefault(in interface{})
SetDefault 给结构体设置默认值
用法:
type person struct { Name string `default:"test"` Age int `default:"18"` Status enum.String `default:"1111"` }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.