structs.go
changeset 24 fff79efe06f6
parent 22 d6b7b4cbf50d
child 25 7437d6eed227
equal deleted inserted replaced
23:b5de44679389 24:fff79efe06f6
    41 var _ fmt.Stringer = &stream{}
    41 var _ fmt.Stringer = &stream{}
    42 
    42 
    43 // <stream:error>
    43 // <stream:error>
    44 // BUG(cjyar) Can this be consolidated with Error? Hide it if not.
    44 // BUG(cjyar) Can this be consolidated with Error? Hide it if not.
    45 type StreamError struct {
    45 type StreamError struct {
    46 	Any definedCondition
    46 	Any Generic
    47 	Text *errText
    47 	Text *errText
    48 }
    48 }
    49 var _ xml.Marshaler = &StreamError{}
    49 var _ xml.Marshaler = &StreamError{}
    50 
       
    51 // BUG(cjyar) Replace this with Generic.
       
    52 type definedCondition struct {
       
    53 	// Must always be in namespace nsStreams
       
    54 	XMLName xml.Name
       
    55 	Chardata string `xml:"chardata"`
       
    56 }
       
    57 
    50 
    58 type errText struct {
    51 type errText struct {
    59 	Lang string `xml:"attr"`
    52 	Lang string `xml:"attr"`
    60 	Text string `xml:"chardata"`
    53 	Text string `xml:"chardata"`
    61 }
    54 }