Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructFieldInfo ¶
func StructFieldInfo(f fakereflect.StructField) (*fieldInfo, error)
StructFieldInfo builds and returns a fieldInfo for f.
Types ¶
type CyclicTypeError ¶ added in v0.3.1
func (*CyclicTypeError) Error ¶ added in v0.3.1
func (err *CyclicTypeError) Error() string
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
type Name ¶
type Name struct {
Space, Local string
}
A Name represents an XML name (Local) annotated with a name space identifier (Space). In tokens returned by Decoder.Token, the Space identifier is given as a canonical URL, not the short prefix used in the document being parsed.
type StartElement ¶
A StartElement represents an XML start element.
type TagPathError ¶
type TagPathError struct { Struct fakereflect.TypeAndCanAddr Field1, Tag1 string Field2, Tag2 string }
A TagPathError represents an error in the unmarshaling process caused by the use of field tags with conflicting paths.
func (*TagPathError) Error ¶
func (e *TagPathError) Error() string
type UnsupportedTypeError ¶
UnsupportedTypeError is returned when Marshal encounters a type that cannot be converted into XML.
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.