utils

package
v0.0.0-...-d2fce3e Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(encryptData string, key string) (string, error)

输入密文,得到明文

func AesEncrypt

func AesEncrypt(plainText string, key string) (string, error)

输入明文,输出密文

func CheckRuneRepeatNum

func CheckRuneRepeatNum(str string, rate int) bool

func FriendlyTime

func FriendlyTime(t time.Time) string

func Get

func Get(url string, params url.Values) (map[string]interface{}, error)

func Md5

func Md5(plainText string) string

func PostForm

func PostForm(url string, params url.Values) (map[string]interface{}, error)

func PostJson

func PostJson(url string, params map[string]interface{}) (jsonMap map[string]interface{}, err error)

func SimpleSafeReplace

func SimpleSafeReplace(str string) string

func Substr

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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