util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelTrace = "trace"
	LogLevelDebug = "debug"
	LogLevelInfo  = "info"
	LogLevelWarn  = "warn"
	LogLevelError = "error"
	LogLevelFatal = "fatal"
	LogLevelPanic = "panic"
)

Variables

This section is empty.

Functions

func AlertUpdateInfo

func AlertUpdateInfo()

func Atoi

func Atoi(s string) int

func CheckVersion

func CheckVersion(version string) (bool, string, error)

func GenerateRandomPasswords added in v0.3.1

func GenerateRandomPasswords() string

func GetCurrentVersion

func GetCurrentVersion() string

func GetRandomString added in v0.4.5

func GetRandomString(length int) string

生成随机名称

func GetUpdateTime

func GetUpdateTime() string

func Init

func Init(level string)

func IsFlushCache added in v0.2.2

func IsFlushCache(oldTimestamp int64) bool

func ReadTimestamp added in v0.4.0

func ReadTimestamp(TimestampType string) int64

func RemoveDuplicatesAndEmpty added in v0.3.1

func RemoveDuplicatesAndEmpty(a []string) (ret []string)

去除重复字符串和空格

func ReturnTimestampType added in v0.4.0

func ReturnTimestampType(provider string, TimestampType string) string

func ReturnVersionTimestampFile added in v0.4.0

func ReturnVersionTimestampFile() string

func TimeDifference added in v0.2.2

func TimeDifference(oldTimestamp int64)

func WriteTimestamp added in v0.4.0

func WriteTimestamp(TimestampType string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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