// MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
// will encode s into an interface{} representation for use in a
// map[string]interface{} if valid, or return nil otherwise.
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
will encode s into an interface{} representation for use in a
map[string]interface{} if valid, or return nil otherwise.
// MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface . It // will encode s into an interface {} representation for use in a // map [ string ] interface {} if valid or return nil otherwise .
func (s String) MarshalMapValue() (interface{}, error) {
	if s.Valid {
		return s.String, nil
	}
	return nil, nil
}
func ( s String ) MarshalMapValue ( ) ( interface { } , error ) { if s . Valid { return s . String , nil } return nil , nil }
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface.
MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface .