z

package
v1.6.4-0...-ea8c640 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateTime = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func DB

func DB(names ...string) gdb.DB

* 获取 DB对象.

默认

func Floor

func Floor(data interface{}, dNum int) float64

获取数值,dName小数位,向下取值

func GetDB

func GetDB(name string) gdb.DB

* 获取 DB对象.

name : 配置名称,默认null

func GetUrl

func GetUrl() string

func OpenBrowse

func OpenBrowse(url string)

func Redis

func Redis(name ...string) *zredis.Redis

func String

func String(params ...interface{}) string

func UUID

func UUID() string

Types

type Map

type Map map[string]interface{}

func NewMap

func NewMap(data interface{}) (result Map)

type Result

type Result struct {
	gjson.Json
	Status bool        `json:"status"`
	Msg    string      `json:"msg"`
	Data   interface{} `json:"data"`
	Code   string      `json:"code""`
	Err    error       `json:"_"`
}

func NewResult

func NewResult(result interface{}, err error) *Result

func (*Result) GetFloor64

func (result *Result) GetFloor64(pattern string, dNum int) float64

Jump to

Keyboard shortcuts

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