Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LintGonicMapper = GonicMapper{ "API": true, "ASCII": true, "CPU": true, "CSS": true, "DNS": true, "EOF": true, "GUID": true, "HTML": true, "HTTP": true, "HTTPS": true, "ID": true, "IP": true, "JSON": true, "LHS": true, "QPS": true, "RAM": true, "RHS": true, "RPC": true, "SLA": true, "SMTP": true, "SSH": true, "TLS": true, "TTL": true, "UI": true, "UID": true, "UUID": true, "URI": true, "URL": true, "UTF8": true, "VM": true, "XML": true, "XSRF": true, "XSS": true, }
LintGonicMapper is A GonicMapper that contains a list of common initialisms taken from golang/lint
Functions ¶
func LowerFirstChar ¶
func UpperFirstChar ¶
Types ¶
type GonicMapper ¶
GonicMapper implements IMapper. It will consider initialisms when mapping names. E.g. id -> ID, user -> User and to table names: UserID -> user_id, MyUID -> my_uid
func (GonicMapper) Obj2Table ¶
func (mapper GonicMapper) Obj2Table(name string) string
func (GonicMapper) Table2Obj ¶
func (mapper GonicMapper) Table2Obj(name string) string
Click to show internal directories.
Click to hide internal directories.