Documentation ¶
Index ¶
- Constants
- func AesEny(plaintext []byte) []byte
- func AppPath() string
- func Contains(s []string, e string) bool
- func EnsureAbs(path string) string
- func GenerateRandomstring(length int) string
- func GetRootPath(path string) string
- func IntContains(s []int64, e int64) bool
- func IsIllegalLength(s string, min int, max int) bool
- func Krand(size int, kind int) []byte
- func MakeToken() string
- func NewUUID() string
- func PathsIsEqual(path1, path2 string) bool
- func Restricted(s, regdata string) bool
- func WorkDir() string
- type SyncLocker
Constants ¶
View Source
const ( KC_RAND_KIND_NUM = 0 KC_RAND_KIND_LOWER = 1 KC_RAND_KIND_UPPER = 2 KC_RAND_KIND_ALL = 3 )
View Source
const ( VersionMinLen = 0 VersionMaxLen = 63 )
View Source
const ( AES_KEY = "12345678abcdefgh" AES_IV = "abcdefgh12345678" )
crypto && decrypt
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomstring ¶ added in v1.5.0
func GetRootPath ¶
func PathsIsEqual ¶
Types ¶
type SyncLocker ¶
type SyncLocker struct {
// contains filtered or unexported fields
}
func NewSyncLocker ¶
func NewSyncLocker() *SyncLocker
func (*SyncLocker) Lock ¶
func (l *SyncLocker) Lock(key string)
func (*SyncLocker) Unlock ¶
func (l *SyncLocker) Unlock(key string)
Click to show internal directories.
Click to hide internal directories.