basic

package
v0.0.0-...-82269be Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNanoTimeLabel

func GetNanoTimeLabel() (cur string)

获取唯一的时间标识(21位)

func IndexOfNoCaseString

func IndexOfNoCaseString(arr []string, target string) int

func IndexOfString

func IndexOfString(arr []string, target string) int

func MarshalJson

func MarshalJson(data interface{}) string

func UUIDString

func UUIDString() string

生成32位UUID

func UnmarshalJson

func UnmarshalJson(content string, data interface{}) (err error)

Types

type SQLCommon

type SQLCommon interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
	Prepare(query string) (*sql.Stmt, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
}

原始SQL的接口

Jump to

Keyboard shortcuts

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