Documentation ¶
Index ¶
- func CamelCased(s string) string
- func CreateSchema(db *bun.DB, ms []interface{}) error
- func SQLLikeEscape(param string, special []rune, escape rune) string
- func SQLLikeEscapePostgres(param string) string
- func ToExported(s string) string
- func ToFirstLower(s string) string
- func ToFirstUpper(s string) string
- func ToMap(d interface{}, ex map[string]bool) map[string]string
- func Underscore(s string) string
- func UpperString(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSchema ¶
CreateSchema create tables
func SQLLikeEscape ¶
SQLLikeEscape like escape
func SQLLikeEscapePostgres ¶
SQLLikeEscapePostgres like escape
func ToMap ¶
ToMap convert fields of struct to map, key is Lowercase for the first letter of the field name
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string". Just work for ASCⅡ code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.