utils

package
v0.0.0-...-dd20015 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadLocationFromTZData func(name string, data []byte) (*time.Location, error) = nil

if you use go 1.10 or higher, you can hack this util by these to avoid "TimeZone.zip not found" on Windows

View Source
var TZData []byte = nil

Functions

func GetGMTLocation

func GetGMTLocation() (*time.Location, error)

func GetMD5Base64

func GetMD5Base64(bytes []byte) (base64Value string)

func GetTimeInFormatISO8601

func GetTimeInFormatISO8601() (timeStr string)

func GetTimeInFormatRFC2616

func GetTimeInFormatRFC2616() (timeStr string)

func GetUUIDV4

func GetUUIDV4() (uuidHex string)

func GetUrlFormedMap

func GetUrlFormedMap(source map[string]string) (urlEncoded string)

func InitStructWithDefaultTag

func InitStructWithDefaultTag(bean interface{})

Types

type Debug

type Debug func(format string, v ...interface{})

func Init

func Init(flag string) Debug

Jump to

Keyboard shortcuts

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