Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FuncMap = template.FuncMap{ "snake": Snake, "camel": Camel, "pascal": Pascal, "protoPascal": ProtoPascal, "upper": strings.ToUpper, "lower": strings.ToLower, "plural": Plural, "add": Add, "getPackageName": GetPackageName, "goType": GoType, } )
Functions ¶
func Camel ¶
Camel converts the given name into a camelCase.
user_info => userInfo full_name => fullName user_id => userID full-admin => fullAdmin
func Pascal ¶
Pascal converts the given name into a PascalCase.
user_info => UserInfo full_name => FullName user_id => UserID full-admin => FullAdmin
func ProtoPascal ¶
ProtoPascal converts the given name into a proto PascalCase, ignore any acronyms.
user_info => UserInfo full_name => FullName user_id => UserId full-admin => FullAdmin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.