Tea

package
v0.0.0-...-7647e70 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 6 Imported by: 117

Documentation

Index

Constants

View Source
const (
	EnvDev  = "dev"
	EnvTest = "test"
	EnvProd = "prod"
)

Variables

View Source
var DS = string(os.PathSeparator)
View Source
var Env = EnvDev
View Source
var Root string

Functions

func BinDir

func BinDir() string

func ConfigDir

func ConfigDir() string

func ConfigFile

func ConfigFile(file string) string

func Is

func Is(env ...string) bool

判断是否在某个特定环境下

func IsTesting

func IsTesting() bool

判断是否在测试模式下

func LogDir

func LogDir() string

func LogFile

func LogFile(file string) string

func PublicDir

func PublicDir() string

func PublicFile

func PublicFile(file string) string

func SetConfigDir

func SetConfigDir(dir string)

func SetPublicDir

func SetPublicDir(dir string)

func SetTmpDir

func SetTmpDir(dir string)

设置临时目录

func SetViewsDir

func SetViewsDir(dir string)

func TmpDir

func TmpDir() string

取得临时目录

func TmpFile

func TmpFile(file string) string

取得临时文件

func UpdateRoot

func UpdateRoot(root string)

func ViewsDir

func ViewsDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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