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