util

package
v0.0.0-...-2bc4f80 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateClient

func CreateClient(accessKeyId *string, accessKeySecret *string) (client *dysmsapi20170525.Client, err error)

func Delete

func Delete(url string) (err error)

func GeneratePicCaptcha

func GeneratePicCaptcha() (id, b64s string, err error)

func GenerateSmsCaptcha

func GenerateSmsCaptcha(length int) string

func GenerateUUID

func GenerateUUID() string

func GetFreePort

func GetFreePort() (int, error)

func GetTodayZeroTime

func GetTodayZeroTime() int64

func ParsePageAndPageSize

func ParsePageAndPageSize(page, pageSize string) (p, pSize int)

func SendSms

func SendSms(mobile string) (captcha string, err error)

func Upload

func Upload(data []byte, size int64, suffix string) (url string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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