Browse Source

golint fixed for modules/user

master
Lunny Xiao 8 years ago
parent
commit
46ecb0a14d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/user/user.go

+ 1
- 0
modules/user/user.go View File

@@ -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 {


Loading…
Cancel
Save