user/user.go
func GetUsername() string {
	entry, err := LookupUID(os.Getuid())
	if err != nil {
		panic(err)
	}
	return entry.Name
}
func GetUsername() string {
	entry, err := LookupUID(os.Getuid())
	if err != nil {
		panic(err)
	}
	return entry.Name
}
func GetUsername ( ) string { entry , err := LookupUID ( os . Getuid ( ) ) if err != nil { panic ( err ) } return entry . Name }
// GetUsername returns the user name from the password database for the actual
// process.
// It panics whther there is an error at searching the UID.
GetUsername returns the user name from the password database for the actual process . It panics whther there is an error at searching the UID .