mirror of https://github.com/Bios-Marcel/cordless
19 lines
302 B
Go
19 lines
302 B
Go
package config
|
|
|
|
import (
|
|
"os/user"
|
|
"path/filepath"
|
|
)
|
|
|
|
func getDefaultConfigDirectory() (string, error) {
|
|
// TODO Gotta research this
|
|
|
|
currentUser, userError := user.Current()
|
|
|
|
if userError != nil {
|
|
return "", userError
|
|
}
|
|
|
|
return filepath.Join(currentUser.HomeDir, "."+AppNameLowercase), nil
|
|
}
|