Documentation
¶
Index ¶
- Variables
- func GetExecutableName() (string, error)
- func GetExecutablePath() (string, error)
- func GetRealExecutablePath() (currentPath string, err error)
- func IsDarwin() bool
- func IsDebug() bool
- func IsLinux() bool
- func IsRelease() bool
- func IsWindows() bool
- func Location() string
- func SetRunMode(mode xruntimeconstants.RunMode)
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecutablePath string // 程序所在路径(如为link,则为link所在的路径)
Functions ¶
func GetExecutablePath ¶
GetExecutablePath 获取当前执行的程序-绝对路径,指向启动当前进程的可执行文件-目录路径.
func GetRealExecutablePath ¶
GetRealExecutablePath 获取当前执行的程序,符号链接的实际路径-绝对路径,指向启动当前进程的可执行文件,符号链接的实际路径-目录路径.
func SetRunMode ¶
func SetRunMode(mode xruntimeconstants.RunMode)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.