Documentation ¶
Overview ¶
Example ¶
type MyConfig struct { Id string `json:"id" require:"" readonly:"true"` Target RequireId `json:"target" skill:"service.service.IService"` } sc, err := schema.Generate(reflect.TypeOf(MyConfig{}), nil) if err != nil { log.Println(err) return } data, _ := json.MarshalIndent(sc, "", "\t") log.Println(string(data))
Output: ""
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func TypeNameOf ¶
func TypeNameOf(v interface{}) string
Types ¶
Click to show internal directories.
Click to hide internal directories.