1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
package macosbase
import (
"path/filepath"
)
// ApplicationSupportDir returns the path to the current user's
// "Application Support" library directory.
func ApplicationSupportDir() string {
return filepath.Join(home(), "Library", "Application Support")
}
// CachesDir returns the path to the current user's "Caches" library directory.
func CachesDir() string {
return filepath.Join(home(), "Library", "Caches")
}
// FrameworksDir returns the path to the current user's "Frameworks" library directory.
func FrameworksDir() string {
return filepath.Join(home(), "Library", "Frameworks")
}
// PreferencesDir returns the path to the current user's "Preferences" library directory.
func PreferencesDir() string {
return filepath.Join(home(), "Library", "Preferences")
}
|