summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go')
-rw-r--r--vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go b/vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go
new file mode 100644
index 000000000..6711ff967
--- /dev/null
+++ b/vendor/github.com/OpenPeeDeeP/xdg/xdg_darwin.go
@@ -0,0 +1,30 @@
+// Copyright (c) 2017, OpenPeeDeeP. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package xdg
+
+import (
+ "os"
+ "path/filepath"
+)
+
+func (o *osDefaulter) defaultDataHome() string {
+ return filepath.Join(os.Getenv("HOME"), "Library", "Application Support")
+}
+
+func (o *osDefaulter) defaultDataDirs() []string {
+ return []string{filepath.Join("/Library", "Application Support")}
+}
+
+func (o *osDefaulter) defaultConfigHome() string {
+ return filepath.Join(os.Getenv("HOME"), "Library", "Application Support")
+}
+
+func (o *osDefaulter) defaultConfigDirs() []string {
+ return []string{filepath.Join("/Library", "Application Support")}
+}
+
+func (o *osDefaulter) defaultCacheHome() string {
+ return filepath.Join(os.Getenv("HOME"), "Library", "Caches")
+}