Versions in this module Expand all Collapse all v2 v2.6.0 Apr 26, 2021 Changes in this version + func Allocate(obj interface{}) (asPtr interface{}, asValue reflect.Value) + func Clone(v interface{}) interface + func Format(v interface{}) (string, error) + func FormatBinary(v []byte) string + func FormatBool(v bool) string + func FormatInteger(v int32) string + func FormatTime(v time.Time) string + func IsZero(v interface{}) bool + func ParseBinary(v string) ([]byte, error) + func ParseBool(v string) (bool, error) + func ParseInteger(v string) (int32, error) + func ParseTime(v string) (time.Time, error) + func ToBinary(v interface{}) ([]byte, error) + func ToBool(v interface{}) (bool, error) + func ToInteger(v interface{}) (int32, error) + func ToString(v interface{}) (string, error) + func ToTime(v interface{}) (time.Time, error) + func ToURL(v interface{}) (*url.URL, error) + func Validate(v interface{}) (interface{}, error) + type ConvertErr struct + Type reflect.Type + Value interface{} + func (e *ConvertErr) Error() string + type Timestamp struct + func ParseTimestamp(s string) (*Timestamp, error) + func (t *Timestamp) MarshalJSON() ([]byte, error) + func (t *Timestamp) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t *Timestamp) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (t Timestamp) String() string + type URI struct + func ParseURI(u string) *URI + func (u *URI) String() string + func (u *URI) UnmarshalJSON(b []byte) error + func (u *URI) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (u URI) MarshalJSON() ([]byte, error) + func (u URI) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (u URI) Validate() bool + type URIRef struct + func ParseURIRef(u string) *URIRef + func (u *URIRef) String() string + func (u *URIRef) UnmarshalJSON(b []byte) error + func (u *URIRef) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (u URIRef) MarshalJSON() ([]byte, error) + func (u URIRef) MarshalXML(e *xml.Encoder, start xml.StartElement) error