Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pname (0.03 sec)

  1. src/os/user/cgo_lookup_unix.go

    		Username: _C_GoString(_C_pw_name(pwd)),
    		Name:     _C_GoString(_C_pw_gecos(pwd)),
    		HomeDir:  _C_GoString(_C_pw_dir(pwd)),
    	}
    	// The pw_gecos field isn't quite standardized. Some docs
    	// say: "It is expected to be a comma separated list of
    	// personal data where the first item is the full name of the
    	// user."
    	u.Name, _, _ = strings.Cut(u.Name, ",")
    	return u
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top