Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Retag ¶
func Retag(n ast.Node, tags StructTags) error
Retag updates the existing tags with the map passed and modifies existing tags if any of the keys are matched. First key to the tags argument is the name of the struct, the second key corresponds to field names.
func ToSnakeCase ¶
Types ¶
type StructTags ¶
func (StructTags) AddTagsToXXXFields ¶
func (s StructTags) AddTagsToXXXFields(tags *structtag.Tags)
Click to show internal directories.
Click to hide internal directories.