tools

package
v0.0.0-...-7986dfc Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONTEST_PRO_KEY = map[int]string{
	0:  "A",
	1:  "B",
	2:  "C",
	3:  "D",
	4:  "E",
	5:  "F",
	6:  "G",
	7:  "H",
	8:  "I",
	9:  "J",
	10: "K",
	11: "L",
	12: "M",
	13: "N",
	14: "O",
	15: "P",
	16: "Q",
	17: "R",
	18: "S",
	19: "T",
	20: "U",
	21: "V",
	22: "W",
	23: "X",
	24: "Y",
	25: "Z",
}
View Source
var LANGUAGE_MAP = map[int]string{
	1:  "C/C++",
	3:  "Java",
	6:  "Python",
	17: "Go",
}

Functions

func AvatarLink(email string, size int) (url string)

func CheckEmail

func CheckEmail(email string) (b bool)

func Compress

func Compress(files []*os.File, dest string) error

func DeCompress

func DeCompress(zipFile, dest string) error

解压

func GenPwd

func GenPwd(pwd string) string

func HashEmail

func HashEmail(email string) string

func InitTools

func InitTools()

func IntToString

func IntToString(s int) string

func MD5

func MD5(s string) string

func SplitIP

func SplitIP(ip string) string

func StartCron

func StartCron()

func StringToInt

func StringToInt(s string) int

func StringToInt32

func StringToInt32(s string) (int32, error)

func StringToMonth

func StringToMonth(s string) time.Month

Types

This section is empty.

Jump to

Keyboard shortcuts

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