util

package
v0.0.0-...-f94672d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomString

func GetRandomString(l int) string

GetRandomString 获得随机字符串

func SortMd5

func SortMd5(s ...string) string

SortMd5 排序并md5,主要用于计算sign

func SortSha1

func SortSha1(s ...string) string

SortSha1 排序并sha1,主要用于计算signature

func Substr

func Substr(str string, start int, end int) string

Substr 截取字符串 start 起点下标 end 终点下标(不包括)

func Try

func Try(f func()) *tryStruct

Try catches exception from f

Types

type ExeceptionHandler

type ExeceptionHandler func(interface{})

ExeceptionHandler handle exception

Jump to

Keyboard shortcuts

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