utils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KC_RAND_KIND_NUM   = 0 // 纯数字
	KC_RAND_KIND_LOWER = 1 // 小写字母
	KC_RAND_KIND_UPPER = 2 // 大写字母
	KC_RAND_KIND_ALL   = 3 // 数字、大小写字母
)

Variables

This section is empty.

Functions

func Checkerr

func Checkerr(err error, msg string)

func Checkerr2

func Checkerr2(err error, msg string) (shouldExit bool)

func EscapeSpecificChar

func EscapeSpecificChar(str string) string

func EscapeString

func EscapeString(driverName, str string) string

func EscapeValuesString

func EscapeValuesString(driverName, str string) string

func FetchRow

func FetchRow(db *sql.DB, sqlstr string, args ...interface{}) (*map[string]string, error)

func HasChineseChar

func HasChineseChar(str string) bool

func Krand

func Krand(size int, kind int) []byte

Krand 随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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