util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelTrace = "trace"
	LogLevelDebug = "debug"
	LogLevelInfo  = "info"
	LogLevelWarn  = "warn"
	LogLevelError = "error"
	LogLevelFatal = "fatal"
	LogLevelPanic = "panic"
)
View Source
const (
	CFCredentialPathEnvVar = "CF_CREDENTIAL_PATH"
	CFHomeEnvVar           = "CF_HOME"
	CFCloudTokenEnvVar     = "CF_CLOUD_TOKEN"
)
View Source
const AppDirName = ".cf"

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)

func GetCFHomeDir

func GetCFHomeDir() (string, error)

func GetCurrentVersion

func GetCurrentVersion() string

func GetUpdateTime

func GetUpdateTime() string

func HandleErr

func HandleErr(e error)

func HandleErrNoExit added in v0.2.0

func HandleErrNoExit(e error)

func Init

func Init(level string)

func ReadTimeStamp

func ReadTimeStamp() int64

func ReturnCacheDict

func ReturnCacheDict() string

func ReturnCacheTimeStampFile

func ReturnCacheTimeStampFile() string

func WriteTimeStamp

func WriteTimeStamp()

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