// ValueOrZero returns the value of s if it is valid; otherwise it returns the
// zero value for a string ("").
ValueOrZero returns the value of s if it is valid; otherwise it returns the
zero value for a string ("").
// ValueOrZero returns the value of s if it is valid ; otherwise it returns the // zero value for a string ( " " ) .
func (s String) ValueOrZero() string {
	if !s.Valid {
		return ""
	}
	return s.String
}
func ( s String ) ValueOrZero ( ) string { if ! s . Valid { return " " } return s . String }
ValueOrZero returns the value of s if it is valid; otherwise it returns the
zero value for a string ("").
ValueOrZero returns the value of s if it is valid ; otherwise it returns the zero value for a string ( " " ) .