/directories

Golang library to get common system and app directories

Primary LanguageGoApache License 2.0Apache-2.0

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.