appconst

package
v0.0.0-...-a91fe3a Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvInitLogLevel key. eg: export KITE_INIT_LOG=debug
	EnvInitLogLevel = "KITE_INIT_LOG"
	// EnvKiteVerbose level.
	EnvKiteVerbose = "KITE_VERBOSE"
	// EnvKiteBaseDir for override the KiteDefaultBaseDir
	EnvKiteBaseDir = "KITE_BASE_DIR"
	// EnvKiteConfig main config file env name
	EnvKiteConfig = "KITE_CONFIG_FILE"
	EnvKiteDotEnv = "KITE_DOTENV_FILE"

	DotEnvFileName = ".env"
	// KiteConfigName default main config filename
	KiteConfigName = "kite.yml"
	// KiteDefaultBaseDir path for: config, tmp and more
	KiteDefaultBaseDir = "~/.kite-go"

	// AppName for the application
	AppName = "kite"

	// ConfKeyApp name on config
	ConfKeyApp = "app"
)
View Source
const (
	Nl    = "NL"
	Space = "SPACE"
	TAB   = "TAB"
)

some special chars name

View Source
const (
	OnBeforeBoot = "app.boot.before"
	OnAfterBoot  = "app.boot.after"

	OnBeforeConfig = "app.config.before"
	OnAfterConfig  = "app.config.after"

	OnBeforeConsole = "app.console.before"
	OnAfterConsole  = "app.console.after"

	OnBeforeRoute = "app.route.before"
	OnAfterRoute  = "app.route.after"
)

Some app event names

View Source
const (
	VarFormat = "{,}"
)

Variables

View Source
var (
	Timezone   = "PRC"
	DateFormat = "2006/01/02 15:04:05.000"
)
View Source
var (
	// StdinAliases list
	StdinAliases = []string{"@i", "@si", "@stdin", "stdin"}
	// StdoutAliases list
	StdoutAliases = []string{"@o", "@so", "@stdout", "stdout"}
	// ClipAliases list
	ClipAliases = []string{"@c", "@cb", "@clip", "@clipboard", "clipboard"}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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