diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 06:41:28 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 06:41:28 -0500 |
| commit | 5036409ef63bc4bf9b63d7dd0cf06cdcb2285ab9 (patch) | |
| tree | 725760124ab53cc1475fe0b4ca5fa0a62078a209 /config.Save.go | |
| parent | 93a56f29dbf3bcceb3a58d59bc996845b762cb31 (diff) | |
use lib/ENV
Diffstat (limited to 'config.Save.go')
| -rw-r--r-- | config.Save.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/config.Save.go b/config.Save.go index 28d5b4b..c317e73 100644 --- a/config.Save.go +++ b/config.Save.go @@ -1,16 +1,13 @@ package config import ( - "os" - "strings" "sync" - - "go.wit.com/log" ) // an experiment to see if this is useful var saveMu sync.RWMutex +/* // returns true if config is working okay func InitValid() bool { saveMu.Lock() @@ -24,16 +21,6 @@ func InitValid() bool { // saves your applications config file func Save() error { - /* - basedir, _ := filepath.Split(configPB.Filename) - if err := os.MkdirAll(basedir, os.ModePerm); err != nil { - return err - } - saveENV() - saveMu.Lock() - defer saveMu.Unlock() - err := SavePB(configPB) - */ return saveENV() } @@ -101,3 +88,4 @@ func Set(key string, newValue string) error { configPB.Append(newvar) return nil } +*/ |
