Documentation
¶
Overview ¶
Package ospath provides utilities to get OS-specific directories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheDir ¶
CacheDir tries to acquire an OS-specific app cache directory for the given importPath. Cache directory contains the app's cached data that can be regenerated as needed. Apps should never rely on the existence of cache files.
It's guaranteed to be a unique directory for the importPath. Before returning the directory's path, CacheDir creates the directory if it doesn't already exist, so it can be used right away.
Types ¶
This section is empty.