- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UnmarshalError (0.1 sec)
-
internal/bucket/object/lock/lock.go
func (l *ObjectLegalHold) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { switch start.Name.Local { case "LegalHold", "ObjectLockLegalHold": default: return xml.UnmarshalError(fmt.Sprintf("expected element type <LegalHold>/<ObjectLockLegalHold> but have <%s>", start.Name.Local)) } for { // Read tokens from the XML document in a stream. t, err := d.Token() if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 17.1K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
func (lc *Lifecycle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { switch start.Name.Local { case "LifecycleConfiguration", "BucketLifecycleConfiguration": default: return xml.UnmarshalError(fmt.Sprintf("expected element type <LifecycleConfiguration>/<BucketLifecycleConfiguration> but have <%s>", start.Name.Local)) } for { // Read tokens from the XML document in a stream. t, err := d.Token()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
} } func TestIssue20396(t *testing.T) { var attrError = UnmarshalError("XML syntax error on line 1: expected attribute name in element") testCases := []struct { s string wantErr error }{ {`<a:te:st xmlns:a="abcd"/>`, // Issue 20396 UnmarshalError("XML syntax error on line 1: expected element name after <")}, {`<a:te=st xmlns:a="abcd"/>`, attrError},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0)