func homeDir(user string) (string, error) {
	u, err := getUserSID(user)
	if err != nil {
		return "", errors.NewUserNotFound(err, "no such user")
	}
	return homeFromRegistry(u)
}
// homeDir returns a local user home dir on Windows
// user.Lookup() does not populate Gid and HomeDir on Windows,
// so we get it from the registry
homeDir returns a local user home dir on Windows
user.Lookup() does not populate Gid and HomeDir on Windows,
so we get it from the registry
// homeDir returns a local user home dir on Windows // user . Lookup () does not populate Gid and HomeDir on Windows // so we get it from the registry
func homeDir(user string) (string, error) {
	u, err := getUserSID(user)
	if err != nil {
		return "", errors.NewUserNotFound(err, "no such user")
	}
	return homeFromRegistry(u)
}
func homeDir ( user string ) ( string , error ) { u , err := getUserSID ( user ) if err != nil { return " " , errors . NewUserNotFound ( err , " " ) } return homeFromRegistry ( u ) }
homeDir returns a local user home dir on Windows
user.Lookup() does not populate Gid and HomeDir on Windows,
so we get it from the registry
homeDir returns a local user home dir on Windows user . Lookup () does not populate Gid and HomeDir on Windows so we get it from the registry