Discover Packages
github.com/zhimma/go-gin-api
cmd
gormgen
pkg
package
Version:
v0.0.0-...-22ca28f
Opens a new window with list of versions in this module.
Published: Aug 7, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
SQLColumnToHumpStyle sql转换成驼峰模式
type Generator struct {
}
The Generator is the one responsible for generating the code, adding the imports, formating, and writing it to the file.
NewGenerator function creates an instance of the generator given the name of the output file as an argument.
Flush function writes the output to the output file.
Format function formats the output of the generation.
Generate executes the template and store it in an internal buffer.
ParserAST parse by go file
type ImportPkg struct {
Pkg string
}
The Parser is used to parse a directory and expose information about the structs defined in the files of this directory.
NewParser create a new parser instance.
func (p *Parser ) Parse() (ret []structConfig)
Parse should be called before any type querying for the parser. It takes the directory to be parsed and extracts all the structs defined in this directory.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.