Documentation ¶
Index ¶
- Variables
- func GetFromJsonString(jsonString, key string) (result string, err error)
- func GetGMTLocation() (*time.Location, error)
- func GetMD5Base64(bytes []byte) (base64Value string)
- func GetTimeInFormatISO8601() (timeStr string)
- func GetTimeInFormatRFC2616() (timeStr string)
- func GetUUIDV4() (uuidHex string)
- func GetUrlFormedMap(source map[string]string) (urlEncoded string)
- func InitStructWithDefaultTag(bean interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoadLocationFromTZData func(name string, data []byte) (*time.Location, error) TZData []byte )
if you use go 1.10 or higher, you can hack this util by these to avoid "TimeZone.zip not found" on Windows
Functions ¶
func GetFromJsonString ¶
GetFromJsonString returns json string
func GetGMTLocation ¶
GetGMTLocation returns gmt location
func GetMD5Base64 ¶
GetMD5Base64 returns base64Value
func GetTimeInFormatISO8601 ¶
func GetTimeInFormatISO8601() (timeStr string)
GetTimeInFormatISO8601 returns time in ISO format
func GetTimeInFormatRFC2616 ¶
func GetTimeInFormatRFC2616() (timeStr string)
GetTimeInFormatRFC2616 returns time in RFC format
func GetUrlFormedMap ¶
GetUrlFormedMap returns url formed map
func InitStructWithDefaultTag ¶
func InitStructWithDefaultTag(bean interface{})
InitStructWithDefaultTag returns default struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.