runtime

package
v0.0.0-...-80248e1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecutablePath string // 程序所在路径(如为link,则为link所在的路径)

Functions

func GetExecutableName

func GetExecutableName() (string, error)

GetExecutableName 获取当前执行的程序的名称

func GetExecutablePath

func GetExecutablePath() (string, error)

GetExecutablePath 获取当前执行的程序-绝对路径,指向启动当前进程的可执行文件-目录路径.

func GetRealExecutablePath

func GetRealExecutablePath() (currentPath string, err error)

GetRealExecutablePath 获取当前执行的程序,符号链接的实际路径-绝对路径,指向启动当前进程的可执行文件,符号链接的实际路径-目录路径.

func IsDarwin

func IsDarwin() bool

IsDarwin darwin

func IsDebug

func IsDebug() bool

IsDebug 是否为调试模式

func IsLinux

func IsLinux() bool

IsLinux linux

func IsRelease

func IsRelease() bool

IsRelease 是否为发行模式

func IsWindows

func IsWindows() bool

IsWindows win

func Location

func Location() string

Location 获取代码位置

func SetRunMode

func SetRunMode(mode xruntimeconstants.RunMode)

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