summaryrefslogtreecommitdiffhomepage
path: root/pkg/global
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-18 22:30:41 -0400
committerDax Raad <[email protected]>2025-05-26 12:40:17 -0400
commit99af6146d5def31c59993636d60eb75a483a283b (patch)
treeeb57ed227c15cf9be54bc9f231c83895d812f881 /pkg/global
parent020e0ca039287b73fa33041fbd1bb214e6ccb396 (diff)
downloadopencode-99af6146d5def31c59993636d60eb75a483a283b.tar.gz
opencode-99af6146d5def31c59993636d60eb75a483a283b.zip
openapi
Diffstat (limited to 'pkg/global')
-rw-r--r--pkg/global/global.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/pkg/global/global.go b/pkg/global/global.go
deleted file mode 100644
index be08eda2b..000000000
--- a/pkg/global/global.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package global
-
-import (
- "os"
- "path/filepath"
-)
-
-var configDir = (func() string {
- home, err := os.UserConfigDir()
- if err != nil {
- panic(err)
- }
- result := filepath.Join(home, "sst")
- os.MkdirAll(result, 0755)
- os.MkdirAll(filepath.Join(result, "bin"), 0755)
- return result
-}())
-
-var cacheDir = (func() string {
- home, err := os.UserCacheDir()
- if err != nil {
- panic(err)
- }
- result := filepath.Join(home, "sst")
- os.MkdirAll(result, 0755)
- return result
-}())
-
-func ConfigDir() string {
- return configDir
-}
-
-func CacheDir() string {
- return cacheDir
-}
-
-type Config struct {
-}