summaryrefslogtreecommitdiff
path: root/appname.go
diff options
context:
space:
mode:
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
-}