Documentation ¶
Index ¶
- Variables
- func HideFileJSONTags(filePath string, structFields *StructFields) error
- func HideFilesJSONTags(goFileStructFields *GoFileStructFields) error
- func OverwriteJSONTags(filePath string, structJSONTag *StructJSONTag) error
- type FieldJSONTag
- type GoFileStructFields
- type StructFields
- type StructJSONTag
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HideFileJSONTags ¶
func HideFileJSONTags(filePath string, structFields *StructFields) error
HideFileJSONTags hides the JSON tags in the specified file
func HideFilesJSONTags ¶
func HideFilesJSONTags(goFileStructFields *GoFileStructFields) error
HideFilesJSONTags hides the JSON tags in the specified files
func OverwriteJSONTags ¶
func OverwriteJSONTags(filePath string, structJSONTag *StructJSONTag) error
OverwriteJSONTags overwrite the given structs fields JSON tags from the given Go file
Types ¶
type FieldJSONTag ¶
FieldJSONTag map the field name to the new JSON tag
type GoFileStructFields ¶
type GoFileStructFields map[string]*StructFields
GoFileStructFields map the Go file path to the struct fields
type StructFields ¶
StructFields map the struct name to the fields name
type StructJSONTag ¶
type StructJSONTag map[string]FieldJSONTag
StructJSONTag map the struct name to the field JSON tag
Click to show internal directories.
Click to hide internal directories.