ospath

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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 LogsDir

func LogsDir() string

LogsDir returns the directory where per-user logs should be written.

func ResolveUserFriendlyPath added in v0.8.0

func ResolveUserFriendlyPath(path string, relativeToHome bool) string

ResolveUserFriendlyPath replaces ~ in a path with a home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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