Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDir ¶
ConvertDir converts all .go files in a directory (non-recursive) to the new struct tag format
func ConvertSingleFile ¶
ConvertSingleFile converts a single file .go file to the new struct tag format
func PreviewChanges ¶
PreviewChanges shows what would be changed without making modifications
Types ¶
type TagCollector ¶ added in v1.9.2
type TagCollector struct {
// contains filtered or unexported fields
}
TagCollector handles the conversion of struct tags
func NewTagCollector ¶ added in v1.9.2
func NewTagCollector(tag string) *TagCollector
Click to show internal directories.
Click to hide internal directories.