func (sys *SystemConfig) GetUser(email string) *User {
	cxn := sys.getDB()
	defer cxn.Close()

	row := cxn.QueryRow("select Email, Name, Privileged from Users where Email=?", email)

	u := &User{}
	err := row.Scan(&u.Email, &u.Name, &u.Privileged)
	if err == sql.ErrNoRows {
		return nil
	}
	if err != nil {
		panic(err)
	}
	return u
}
// GetUser fetches a specific User instance. If it returns a nil pointer but no error, that means
// there is no User associated with the provided email.
GetUser fetches a specific User instance. If it returns a nil pointer but no error, that means
there is no User associated with the provided email.
// GetUser fetches a specific User instance . If it returns a nil pointer but no error that means // there is no User associated with the provided email .
func (sys *SystemConfig) GetUser(email string) *User {
	cxn := sys.getDB()
	defer cxn.Close()
	row := cxn.QueryRow("select Email, Name, Privileged from Users where Email=?", email)
	u := &User{}
	err := row.Scan(&u.Email, &u.Name, &u.Privileged)
	if err == sql.ErrNoRows {
		return nil
	}
	if err != nil {
		panic(err)
	}
	return u
}
func ( sys * SystemConfig ) GetUser ( email string ) * User { cxn := sys . getDB ( ) defer cxn . Close ( ) row := cxn . QueryRow ( " " , email ) u := & User { } err := row . Scan ( & u . Email , & u . Name , & u . Privileged ) if err == sql . ErrNoRows { return nil } if err != nil { panic ( err ) } return u }
GetUser fetches a specific User instance.
GetUser fetches a specific User instance .