// FetchUserByID retrieves a user from the underlying data store
// by their ID.
FetchUserByID retrieves a user from the underlying data store
by their ID.
// FetchUserByID retrieves a user from the underlying data store // by their ID .
func (s *Store) FetchUserByID(ctx context.Context, id xid.ID) (user.User, error) {
	usr := &user.Core{}
	if err := s.q.GetContext(ctx, s.db, usr, "select_user_by_id", id); err != nil {
		return nil, detectErr(err)
	}
	return usr, nil
}
func ( s * Store ) FetchUserByID ( ctx context . Context , id xid . ID ) ( user . User , error ) { usr := & user . Core { } if err := s . q . GetContext ( ctx , s . db , usr , " " , id ) ; err != nil { return nil , detectErr ( err ) } return usr , nil }
FetchUserByID retrieves a user from the underlying data store
by their ID.
FetchUserByID retrieves a user from the underlying data store by their ID .