utils

package
v0.0.0-...-aa26d55 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addslashes

func Addslashes(str string) string

addslashes() 函数返回在预定义字符之前添加反斜杠的字符串。 预定义字符是: 单引号(') 双引号(") 反斜杠(\)

func DefaultValue

func DefaultValue(value interface{}) string

get the default value of the column

func Express

func Express(content string) fmt.Stringer

func QuoteIdent

func QuoteIdent(s, quote string) string

func QuoteIdents

func QuoteIdents(idents []string, quoteIdent func(s string) string) string

func QuoteInterfaces

func QuoteInterfaces(values ...interface{}) string

func QuoteStrings

func QuoteStrings(values ...string) string

func StringsUnique

func StringsUnique(items []string) []string

unique string slice

func Stripslashes

func Stripslashes(str string) string

stripslashes() 函数删除由 addslashes() 函数添加的反斜杠。

Types

This section is empty.

Jump to

Keyboard shortcuts

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