util

package
v0.0.0-...-4e24f74 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt

func BytesToInt(b []byte) int

func EventResult

func EventResult(code, etype, widgetId string, data interface{}) (string, error)

func GetID

func GetID() string

字符串纳秒级

func GetMD5ID

func GetMD5ID() string

纳秒级MD5

func GetTimeStamp

func GetTimeStamp() int64

毫秒级

func GetTimeStampUnixNano

func GetTimeStampUnixNano() int64

纳秒级

func HtmlTemplate

func HtmlTemplate(template *htmlTemplate.Template, data interface{}) (string, error)

func HtmlTemplateBuffer

func HtmlTemplateBuffer(template *htmlTemplate.Template, data interface{}) (*bytes.Buffer, error)

func IsBlank

func IsBlank(value ...string) bool

func IsExist

func IsExist(path string) bool

func MD5

func MD5(str string) string

func ParseInt

func ParseInt(value interface{}) int

func ParseString

func ParseString(value interface{}) string

func Sleep

func Sleep(s time.Duration)

func TextTemplate

func TextTemplate(template *textTemplate.Template, data interface{}) (string, error)

func ToArrayJson

func ToArrayJson(dataAray interface{})

func ToJson

func ToJson(data interface{}) ([]byte, error)

func ToObject

func ToObject(data []byte, i interface{}) error

Types

This section is empty.

Directories

Path Synopsis
w

Jump to

Keyboard shortcuts

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