z

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DB added in v1.0.20200708

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

* 获取 DB对象.

默认

func Floor added in v1.0.5

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

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

func GetDB added in v1.1.20200925

func GetDB(name string) gdb.DB

* 获取 DB对象.

name : 配置名称,默认null

func GetTime added in v1.8.2

func GetTime(strDateTime string) time.Time

func GetUrl added in v1.1.20200925

func GetUrl() string

func Now added in v1.8.2

func Now() string

func OpenBrowse added in v1.0.20200428

func OpenBrowse(url string)

func Redis added in v1.2.20201014

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

func String added in v1.0.6

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

func UUID added in v1.0.20200708

func UUID() string

Types

type Map

type Map map[string]interface{}

func NewMap added in v1.0.20200428

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

type Result added in v1.0.4

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 added in v1.0.4

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

func (*Result) GetFloor64 added in v1.0.6

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