func NewUser(name string) (*User, error) {
	u := &User{
		Name:     name,
		Created:  now().UTC(),
		Modified: now().UTC(),
	}
	if err := u.Validate(); err != nil {
		return nil, err
	}
	return u, nil
}
// NewUser returns a new User object, based on the provided UUID and username.
NewUser returns a new User object, based on the provided UUID and username.
// NewUser returns a new User object based on the provided UUID and username .
func NewUser(name string) (*User, error) {
	u := &User{
		Name:     name,
		Created:  now().UTC(),
		Modified: now().UTC(),
	}
	if err := u.Validate(); err != nil {
		return nil, err
	}
	return u, nil
}
func NewUser ( name string ) ( * User , error ) { u := & User { Name : name , Created : now ( ) . UTC ( ) , Modified : now ( ) . UTC ( ) , } if err := u . Validate ( ) ; err != nil { return nil , err } return u , nil }
NewUser returns a new User object, based on the provided UUID and username.
NewUser returns a new User object based on the provided UUID and username .