util

package
v0.0.0-...-0169c2d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStuID

func CheckStuID(id string) bool

CheckStuID legality

func CheckUserQ

func CheckUserQ(qq string) bool

CheckUserQ legality

func GenCKey

func GenCKey() string

GenCKey gen new confirmkey

func GenRandomString

func GenRandomString(l int) string

GenRandomString of length l

func GenSessionID

func GenSessionID() string

GenSessionID gen new sid

func GenToken

func GenToken() string

GenToken gen new token

func GetNameListMap

func GetNameListMap() (nameMap map[string]string, classMap map[string]int)

GetNameListMap returns known namelist

func GetUploadFileName

func GetUploadFileName(t *database.TaskInfo, u database.UserInfo, name string, isknown bool) string

GetUploadFileName returns filename only

func GetUploadFolerName

func GetUploadFolerName(t *database.TaskInfo) string

GetUploadFolerName returns path of task

func MakeDirIfNessesary

func MakeDirIfNessesary(path string) error

MakeDirIfNessesary rt

func ZipDir

func ZipDir(dir string) error

ZipDir to path.zip

Types

This section is empty.

Jump to

Keyboard shortcuts

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