env

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRootPath = "."

Variables

View Source
var (
	// 本地ip
	LocalIP string

	// 项目AppName
	AppName string
)

Functions

func GetAppName

func GetAppName() string

func GetConfDirPath

func GetConfDirPath() string

GetConfDirPath 返回配置文件目录绝对地址

func GetInternalIp

func GetInternalIp() string

func GetLogDirPath

func GetLogDirPath() string

LogRootPath 返回log目录的绝对地址

func GetRootPath

func GetRootPath() string

RootPath 返回应用的根目录

func IsDockerPlatform

func IsDockerPlatform() bool

判断项目运行平台

func LoadConf

func LoadConf(filename, subConf string, s interface{})

func SetAppName

func SetAppName(appName string)

手动指定SetAppName

func SetRootPath

func SetRootPath(r string)

SetRootPath 设置应用的根目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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