Sha256: cac32d8a99fb54e7740b5f8e79492145fc1481102cd7e51fa27fb1dfe3e4c1c6
Contents?: true
Size: 1019 Bytes
Versions: 16
Compression:
Stored size: 1019 Bytes
Contents
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. // DO NOT EDIT. package generated import ( "encoding/xml" "strings" ) type additionalProperties map[string]*string // UnmarshalXML implements the xml.Unmarshaler interface for additionalProperties. func (ap *additionalProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { tokName := "" for t, err := d.Token(); err == nil; t, err = d.Token() { switch tt := t.(type) { case xml.StartElement: tokName = strings.ToLower(tt.Name.Local) break case xml.CharData: if tokName == "" { continue } if *ap == nil { *ap = additionalProperties{} } s := string(tt) (*ap)[tokName] = &s tokName = "" break } } return nil }
Version data entries
16 entries across 16 versions & 1 rubygems