Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Singular = rules.Singularize
View Source
var Tableize = inflect.Tableize
View Source
var TemplateFunctions = template.FuncMap{ "lower": strings.ToLower, "upper": strings.ToUpper, "pascal": Pascal, "plural": plural, "singular": rules.Singularize, "goType": goType, "goInputType": goInputType, "customType": customType, "columnType": columnType, "snake": Snake, "join": strings.Join, "camel": camel, "firstWordUpperCamel": firstWordUpperCamel, "firstWordLowerCamel": firstWordLowerCamel, "firstLetterLower": firstLetterLower, "sub": sub, "add": add, "hasManyWithNoThrough": hasManyWithNoThrough, "hasManyWithThrough": hasManyWithThrough, "checkVariable": checkVariable, "delVariable": delVariable, "addStr": addStr, "isAssociation": isAssociation, "isOnlyBelongTo": isOnlyBelongTo, "getHasOne": getHasOne, "getTableNameOfBelongTo": getTableNameOfBelongTo, "getTableNameOfHasOne": getTableNameOfHasOne, "getTableNameOfHasMany": getTableNameOfHasMany, "getTableNameOfThrough": getTableNameOfThrough, "getTableNameFromModelName": getTableNameFromModelName, "goChangeSetType": goChangeSetType, "goKeywordFix": goKeywordFix, "goModelType": goModelType, }
TODO: move to template generator
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.