util

package
v0.0.0-...-caacdb4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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

func GenerateRandomPasswords() string

func GetCurrentVersion

func GetCurrentVersion() string

func GetUpdateTime

func GetUpdateTime() string

func Init

func Init(level string)

func IsFlushCache

func IsFlushCache(oldTimestamp int64) bool

func ReadTimestamp

func ReadTimestamp(TimestampType string) int64

func RemoveDuplicatesAndEmpty

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

去除重复字符串和空格

func ReturnTimestampType

func ReturnTimestampType(provider string, TimestampType string) string

func ReturnVersionTimestampFile

func ReturnVersionTimestampFile() string

func TimeDifference

func TimeDifference(oldTimestamp int64)

func WriteTimestamp

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