bun

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCased

func CamelCased(s string) string

CamelCased Just work for ASCⅡ code

func CreateSchema

func CreateSchema(db *bun.DB, ms []interface{}) error

CreateSchema create tables

func SQLLikeEscape

func SQLLikeEscape(param string, special []rune, escape rune) string

SQLLikeEscape like escape

func SQLLikeEscapePostgres

func SQLLikeEscapePostgres(param string) string

SQLLikeEscapePostgres like escape

func ToExported

func ToExported(s string) string

ToExported Just work for ASCⅡ code

func ToFirstLower

func ToFirstLower(s string) string

ToFirstLower Lowercase for the first letter

func ToFirstUpper

func ToFirstUpper(s string) string

ToFirstUpper Uppercase for the first letter

func ToMap

func ToMap(d interface{}, ex map[string]bool) map[string]string

ToMap convert fields of struct to map, key is Lowercase for the first letter of the field name

func Underscore

func Underscore(s string) string

Underscore converts "CamelCasedString" to "camel_cased_string". Just work for ASCⅡ code

func UpperString

func UpperString(s string) string

UpperString Just work for ASCⅡ code

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL