glide up
This commit is contained in:
8
vendor/golang.org/x/net/webdav/internal/xml/marshal.go
generated
vendored
8
vendor/golang.org/x/net/webdav/internal/xml/marshal.go
generated
vendored
@@ -26,9 +26,9 @@ const (
|
||||
//
|
||||
// Marshal handles an array or slice by marshalling each of the elements.
|
||||
// Marshal handles a pointer by marshalling the value it points at or, if the
|
||||
// pointer is nil, by writing nothing. Marshal handles an interface value by
|
||||
// pointer is nil, by writing nothing. Marshal handles an interface value by
|
||||
// marshalling the value it contains or, if the interface value is nil, by
|
||||
// writing nothing. Marshal handles all other data by writing one or more XML
|
||||
// writing nothing. Marshal handles all other data by writing one or more XML
|
||||
// elements containing the data.
|
||||
//
|
||||
// The name for the XML elements is taken from, in order of preference:
|
||||
@@ -61,7 +61,7 @@ const (
|
||||
// value were part of the outer struct.
|
||||
//
|
||||
// If a field uses a tag "a>b>c", then the element c will be nested inside
|
||||
// parent elements a and b. Fields that appear next to each other that name
|
||||
// parent elements a and b. Fields that appear next to each other that name
|
||||
// the same parent will be enclosed in one XML element.
|
||||
//
|
||||
// See MarshalIndent for an example.
|
||||
@@ -222,7 +222,7 @@ func (enc *Encoder) EncodeToken(t Token) error {
|
||||
return p.cachedWriteError()
|
||||
case ProcInst:
|
||||
// First token to be encoded which is also a ProcInst with target of xml
|
||||
// is the xml declaration. The only ProcInst where target of xml is allowed.
|
||||
// is the xml declaration. The only ProcInst where target of xml is allowed.
|
||||
if t.Target == "xml" && p.Buffered() != 0 {
|
||||
return fmt.Errorf("xml: EncodeToken of ProcInst xml target only valid for xml declaration, first token encoded")
|
||||
}
|
||||
|
8
vendor/golang.org/x/net/webdav/internal/xml/read.go
generated
vendored
8
vendor/golang.org/x/net/webdav/internal/xml/read.go
generated
vendored
@@ -27,7 +27,7 @@ import (
|
||||
// discarded.
|
||||
//
|
||||
// Because Unmarshal uses the reflect package, it can only assign
|
||||
// to exported (upper case) fields. Unmarshal uses a case-sensitive
|
||||
// to exported (upper case) fields. Unmarshal uses a case-sensitive
|
||||
// comparison to match XML element names to tag values and struct
|
||||
// field names.
|
||||
//
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
//
|
||||
// * If the struct has a field of type []byte or string with tag
|
||||
// ",innerxml", Unmarshal accumulates the raw XML nested inside the
|
||||
// element in that field. The rest of the rules still apply.
|
||||
// element in that field. The rest of the rules still apply.
|
||||
//
|
||||
// * If the struct has a field named XMLName of type xml.Name,
|
||||
// Unmarshal records the element name in that field.
|
||||
@@ -59,7 +59,7 @@ import (
|
||||
//
|
||||
// * If the XML element contains comments, they are accumulated in
|
||||
// the first struct field that has tag ",comment". The struct
|
||||
// field may have type []byte or string. If there is no such
|
||||
// field may have type []byte or string. If there is no such
|
||||
// field, the comments are discarded.
|
||||
//
|
||||
// * If the XML element contains a sub-element whose name matches
|
||||
@@ -102,7 +102,7 @@ import (
|
||||
//
|
||||
// Unmarshal maps an XML element or attribute value to an integer or
|
||||
// floating-point field by setting the field to the result of
|
||||
// interpreting the string value in decimal. There is no check for
|
||||
// interpreting the string value in decimal. There is no check for
|
||||
// overflow.
|
||||
//
|
||||
// Unmarshal maps an XML element to an xml.Name by recording the
|
||||
|
6
vendor/golang.org/x/net/webdav/internal/xml/xml.go
generated
vendored
6
vendor/golang.org/x/net/webdav/internal/xml/xml.go
generated
vendored
@@ -252,7 +252,7 @@ func NewDecoder(r io.Reader) *Decoder {
|
||||
//
|
||||
// Slices of bytes in the returned token data refer to the
|
||||
// parser's internal buffer and remain valid only until the next
|
||||
// call to Token. To acquire a copy of the bytes, call CopyToken
|
||||
// call to Token. To acquire a copy of the bytes, call CopyToken
|
||||
// or the token's Copy method.
|
||||
//
|
||||
// Token expands self-closing elements such as <br/>
|
||||
@@ -360,7 +360,7 @@ func (d *Decoder) switchToReader(r io.Reader) {
|
||||
}
|
||||
|
||||
// Parsing state - stack holds old name space translations
|
||||
// and the current set of open elements. The translations to pop when
|
||||
// and the current set of open elements. The translations to pop when
|
||||
// ending a given tag are *below* it on the stack, which is
|
||||
// more work but forced on us by XML.
|
||||
type stack struct {
|
||||
@@ -1253,7 +1253,7 @@ func isNameString(s string) bool {
|
||||
|
||||
// These tables were generated by cut and paste from Appendix B of
|
||||
// the XML spec at http://www.xml.com/axml/testaxml.htm
|
||||
// and then reformatting. First corresponds to (Letter | '_' | ':')
|
||||
// and then reformatting. First corresponds to (Letter | '_' | ':')
|
||||
// and second corresponds to NameChar.
|
||||
|
||||
var first = &unicode.RangeTable{
|
||||
|
Reference in New Issue
Block a user