Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileImports ¶
GetFileImports read the file and parse the imports section. Return all found imports with aliases.
func RenderOptions ¶
func RenderOptions(packageName, optionsStructName string, fileImports []string, data []OptionMeta) ([]byte, error)
RenderOptions will render file and out it's content.
Types ¶
type OptionMeta ¶
func GetOptionSpec ¶
func GetOptionSpec(filePath, optionsStructName string) ([]OptionMeta, error)
GetOptionSpec read the input filename by filePath, find optionsStructName and scan for options.
Click to show internal directories.
Click to hide internal directories.