Documentation ¶
Overview ¶
Package ospath provides discovery of OS-dependent paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the directory where configuration data (possibly roaming) needs to be stored.
func IsAbs ¶ added in v0.9.3
IsAbs determines if a given path is absolute, in particular treating \\hostname\share as absolute on Windows.
func LogsDir ¶
func LogsDir() string
LogsDir returns the directory where per-user logs should be written.
func ResolveUserFriendlyPath ¶ added in v0.8.0
ResolveUserFriendlyPath replaces ~ in a path with a home directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.