diff options
-rw-r--r-- | modules/user/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/user.go b/modules/user/user.go index 972629eae3..b9911e6f52 100644 --- a/modules/user/user.go +++ b/modules/user/user.go @@ -6,6 +6,7 @@ package user import "os" +// CurrentUsername return current login OS user name func CurrentUsername() string { curUserName := os.Getenv("USER") if len(curUserName) > 0 { |