Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "pluralize": inflector.Pluralize, "singularize": inflector.Singularize, "title": strings.Title, "firstLower": FirstCharLower, "toLower": strings.ToLower, "toSnakeCase": snaker.CamelToSnake, "firstChar": GetFirstChar, }
FuncMap is a set of functions to use in templates
Functions ¶
func FirstCharLower ¶
FirstCharLower lowers first char of string
func GenerateFile ¶
GenerateFile produces a file from template and data (data structure)
func GetFirstChar ¶
GetFirstChar returns the first char of string
Types ¶
type SelectedModel ¶
SelectedModel is a structure that holds model name and selected methods
func SelectMethodsModels ¶
func SelectMethodsModels(typeName string) (selectedModels []SelectedModel)
SelectMethodsModels asks user which models and methods to generate
Click to show internal directories.
Click to hide internal directories.