Documentation
¶
Overview ¶
Package homepath 复刻官方 util/home-paths 的用户数据根解析:按"显式配置 > OMNIX_HOME 环境变量 > ~/.omnix"的优先级确定唯一根,并支持 ~ 展开与符号化显示。
Index ¶
Constants ¶
View Source
const EnvName = "OMNIX_HOME"
EnvName 是覆盖默认 home 的环境变量名。
View Source
const HomeDirName = ".omnix"
HomeDirName 是默认 Harness home 目录名。
Variables ¶
This section is empty.
Functions ¶
func ExpandHome ¶
ExpandHome 展开开头的 ~、~/、~\\ 为操作系统 home;不支持的前缀原样返回。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.