Add server Options and rework flags a bit
This commit is contained in:
11
release.go
11
release.go
@@ -7,6 +7,17 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func getSecretPath() (string, error) {
|
||||
dir, err := os.UserCacheDir()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
dirPath := filepath.Join(dir, "MangaGetter")
|
||||
filePath := filepath.Join(dirPath, "secret.secret")
|
||||
return filePath, nil
|
||||
}
|
||||
|
||||
func getSecret() (string, error) {
|
||||
dir, err := os.UserCacheDir()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user