summaryrefslogtreecommitdiff
path: root/appname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 22:41:47 -0500
committerJeff Carr <[email protected]>2025-10-26 22:41:47 -0500
commit4d0828def125f96d376cc1bd018bd3d8b0997901 (patch)
treeb683bbe08350c6e5b78eba65be9a6496091c874b /appname.go
parent59c9500872620a0e43752d7ebf352804aaf49925 (diff)
rearranging filenames
Diffstat (limited to 'appname.go')
-rw-r--r--appname.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/appname.go b/appname.go
deleted file mode 100644
index 9fae527..0000000
--- a/appname.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package env
-
-import (
- "errors"
- "os/user"
-)
-
-func GetAppname() (string, error) {
- if APPNAME != "" {
- return APPNAME, nil
- }
- return "", errors.New("your application must setup config.Init()")
-}
-
-func GetUsername() string {
- if Get("username") != "" {
- return Get("username")
- }
- usr, _ := user.Current()
- if usr.Username != "" {
- return usr.Username
- }
- return "notsure" // OS Idiocracy
-}