Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateOut ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type Opt ¶
func WithGoTag ¶
WithGoTag will try to get the first non-empty field name based on Golang tag. For example, if you use ["json", "yaml"], then json tag will be used as field name if the value is not empty. If json tag is empty, then it will try using yaml tag name. If all the list is still return empty string, it will use golang default field name.
By default, this will use json tag.
func WithSchemaPrefix ¶
Click to show internal directories.
Click to hide internal directories.