Skip to content

Golang library to get common system and app directories

License

Notifications You must be signed in to change notification settings

randlabs/directories

Repository files navigation

Directories

Helper cross-platform Golang library to retrieve commonly used directories.

The library tries to get directory names using platform specific API instead of relying, for e.g., in environment variables that might not be present.

Usage

import "github.com/randlabs/directories"
dir, err := GetHomeDirectory()
if err == nil {
	fmt.Printf("Home directory: %v\n", dir)
} 

License

See LICENSE file for details.

About

Golang library to get common system and app directories

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages