user/user.go
func GetUsernameFromEnv() string {
	user_env := []string{"USER", "USERNAME", "LOGNAME", "LNAME"}

	for _, val := range user_env {
		name := os.Getenv(val)
		if name != "" {
			return name
		}
	}
	return ""
}
func GetUsernameFromEnv() string {
	user_env := []string{"USER", "USERNAME", "LOGNAME", "LNAME"}

	for _, val := range user_env {
		name := os.Getenv(val)
		if name != "" {
			return name
		}
	}
	return ""
}
func GetUsernameFromEnv ( ) string { user_env := [ ] string { " " , " " , " " , " " } for _ , val := range user_env { name := os . Getenv ( val ) if name != " " { return name } } return " " }
// GetUsernameFromEnv returns the user name from the environment variable
// for the actual process.
GetUsernameFromEnv returns the user name from the environment variable for the actual process .