Documentation ¶
Index ¶
- func CreateTempFile(filename, content string) func()
- func DeVendor(importPath string) string
- func Generate(generator Generator)
- func GeneratedSuffix(filename string) string
- func GetPackageImportPath(dir string) string
- func IsGoFile(filename string) bool
- func IsGoTextFile(filename string) bool
- func Rewords(s string, reducer RewordsReducer) string
- func SplitToWords(s string) (entries []string)
- func ToCamelCase(s string) string
- func ToLowerCamelCase(s string) string
- func ToLowerLinkCase(s string) string
- func ToLowerSnakeCase(s string) string
- func ToUpperCamelCase(s string) string
- func ToUpperFirst(s string) string
- func ToUpperSnakeCase(s string) string
- func WriteFile(filename string, content string)
- type GenFile
- type Generator
- type ImportPkg
- type Importer
- func (importer *Importer) ExposeVar(name string) string
- func (importer *Importer) Import(importPath string, alias bool) *ImportPkg
- func (importer *Importer) PureUse(importPath string, subPkgs ...string) string
- func (importer *Importer) Sdump(v interface{}) string
- func (importer *Importer) String() string
- func (importer *Importer) Type(tpe reflect.Type) string
- func (importer *Importer) Use(importPath string, subPkgs ...string) string
- func (importer *Importer) Var(name string) string
- func (importer *Importer) WriteToImports(w io.Writer)
- type Outputs
- type RewordsReducer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
func CreateTempFile(filename, content string) func()
func GeneratedSuffix ¶
func GetPackageImportPath ¶
func IsGoTextFile ¶
func Rewords ¶
func Rewords(s string, reducer RewordsReducer) string
func SplitToWords ¶
func ToCamelCase ¶
func ToLowerCamelCase ¶
func ToLowerLinkCase ¶
func ToLowerSnakeCase ¶
func ToUpperCamelCase ¶
func ToUpperFirst ¶
func ToUpperSnakeCase ¶
Types ¶
type GenFile ¶
func NewGenFile ¶
type Importer ¶
type Importer struct { Local string // contains filtered or unexported fields }
func (*Importer) WriteToImports ¶
type Outputs ¶
func (Outputs) WriteFiles ¶
func (outputs Outputs) WriteFiles()
Click to show internal directories.
Click to hide internal directories.