Documentation ¶
Index ¶
- type MapAny
- type MapAnyBool
- type MapAnyBoolEntry
- type MapAnyByte
- type MapAnyByteEntry
- type MapAnyEntry
- type MapAnyFloat32
- type MapAnyFloat32Entry
- type MapAnyFloat64
- type MapAnyFloat64Entry
- type MapAnyInt
- type MapAnyInt16
- type MapAnyInt16Entry
- type MapAnyInt32
- type MapAnyInt32Entry
- type MapAnyInt64
- type MapAnyInt64Entry
- type MapAnyInt8
- type MapAnyInt8Entry
- type MapAnyIntEntry
- type MapAnyRune
- type MapAnyRuneEntry
- type MapAnyString
- type MapAnyStringEntry
- type MapAnyUint
- type MapAnyUint16
- type MapAnyUint16Entry
- type MapAnyUint32
- type MapAnyUint32Entry
- type MapAnyUint64
- type MapAnyUint64Entry
- type MapAnyUint8
- type MapAnyUint8Entry
- type MapAnyUintEntry
- type MapIntAny
- type MapIntAnyEntry
- type MapIntBool
- type MapIntBoolEntry
- type MapIntByte
- type MapIntByteEntry
- type MapIntFloat32
- type MapIntFloat32Entry
- type MapIntFloat64
- type MapIntFloat64Entry
- type MapIntInt
- type MapIntInt16
- type MapIntInt16Entry
- type MapIntInt32
- type MapIntInt32Entry
- type MapIntInt64
- type MapIntInt64Entry
- type MapIntInt8
- type MapIntInt8Entry
- type MapIntIntEntry
- type MapIntRune
- type MapIntRuneEntry
- type MapIntString
- type MapIntStringEntry
- type MapIntUint
- type MapIntUint16
- type MapIntUint16Entry
- type MapIntUint32
- type MapIntUint32Entry
- type MapIntUint64
- type MapIntUint64Entry
- type MapIntUint8
- type MapIntUint8Entry
- type MapIntUintEntry
- type MapStringAny
- type MapStringAnyEntry
- type MapStringBool
- type MapStringBoolEntry
- type MapStringByte
- type MapStringByteEntry
- type MapStringFloat32
- type MapStringFloat32Entry
- type MapStringFloat64
- type MapStringFloat64Entry
- type MapStringInt
- type MapStringInt16
- type MapStringInt16Entry
- type MapStringInt32
- type MapStringInt32Entry
- type MapStringInt64
- type MapStringInt64Entry
- type MapStringInt8
- type MapStringInt8Entry
- type MapStringIntEntry
- type MapStringRune
- type MapStringRuneEntry
- type MapStringString
- type MapStringStringEntry
- type MapStringUint
- type MapStringUint16
- type MapStringUint16Entry
- type MapStringUint32
- type MapStringUint32Entry
- type MapStringUint64
- type MapStringUint64Entry
- type MapStringUint8
- type MapStringUint8Entry
- type MapStringUintEntry
- type MapUintAny
- type MapUintAnyEntry
- type MapUintBool
- type MapUintBoolEntry
- type MapUintByte
- type MapUintByteEntry
- type MapUintFloat32
- type MapUintFloat32Entry
- type MapUintFloat64
- type MapUintFloat64Entry
- type MapUintInt
- type MapUintInt16
- type MapUintInt16Entry
- type MapUintInt32
- type MapUintInt32Entry
- type MapUintInt64
- type MapUintInt64Entry
- type MapUintInt8
- type MapUintInt8Entry
- type MapUintIntEntry
- type MapUintRune
- type MapUintRuneEntry
- type MapUintString
- type MapUintStringEntry
- type MapUintUint
- type MapUintUint16
- type MapUintUint16Entry
- type MapUintUint32
- type MapUintUint32Entry
- type MapUintUint64
- type MapUintUint64Entry
- type MapUintUint8
- type MapUintUint8Entry
- type MapUintUintEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapAny ¶
type MapAny interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v interface{}) MapAny // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v interface{}) MapAny // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v interface{}) MapAny // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v interface{}) MapAny // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value interface{}, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of interface{} if an entry was found // with the key `k`. GetOpt(k interface{}) option.Untyped // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAny // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v interface{})) MapAny // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAny }
MapAny defines an ordered map of interface{} to interface{}.
type MapAnyBool ¶
type MapAnyBool interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v bool) MapAnyBool // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *bool) MapAnyBool // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v bool) MapAnyBool // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v bool) MapAnyBool // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value bool, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of bool if an entry was found // with the key `k`. GetOpt(k interface{}) option.Bool // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyBoolEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyBool // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v bool)) MapAnyBool // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyBool }
MapAnyBool defines an ordered map of interface{} to bool.
func NewMapAnyBool ¶
func NewMapAnyBool(size int) MapAnyBool
NewMapAnyBool creates a new instance of MapAnyBool presized to the given size.
type MapAnyBoolEntry ¶
type MapAnyBoolEntry struct { Key interface{} `json:"key"` Val bool `json:"value"` }
MapAnyBoolEntry is a single entry in an instance of MapAnyBool.
type MapAnyByte ¶
type MapAnyByte interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v byte) MapAnyByte // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *byte) MapAnyByte // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v byte) MapAnyByte // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v byte) MapAnyByte // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value byte, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of byte if an entry was found // with the key `k`. GetOpt(k interface{}) option.Byte // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyByteEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyByte // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v byte)) MapAnyByte // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyByte }
MapAnyByte defines an ordered map of interface{} to byte.
func NewMapAnyByte ¶
func NewMapAnyByte(size int) MapAnyByte
NewMapAnyByte creates a new instance of MapAnyByte presized to the given size.
type MapAnyByteEntry ¶
type MapAnyByteEntry struct { Key interface{} `json:"key"` Val byte `json:"value"` }
MapAnyByteEntry is a single entry in an instance of MapAnyByte.
type MapAnyEntry ¶
type MapAnyEntry struct { Key interface{} `json:"key"` Val interface{} `json:"value"` }
MapAnyEntry is a single entry in an instance of MapAny.
type MapAnyFloat32 ¶
type MapAnyFloat32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v float32) MapAnyFloat32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *float32) MapAnyFloat32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v float32) MapAnyFloat32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v float32) MapAnyFloat32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value float32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float32 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Float32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyFloat32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyFloat32 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v float32)) MapAnyFloat32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyFloat32 }
MapAnyFloat32 defines an ordered map of interface{} to float32.
func NewMapAnyFloat32 ¶
func NewMapAnyFloat32(size int) MapAnyFloat32
NewMapAnyFloat32 creates a new instance of MapAnyFloat32 presized to the given size.
type MapAnyFloat32Entry ¶
type MapAnyFloat32Entry struct { Key interface{} `json:"key"` Val float32 `json:"value"` }
MapAnyFloat32Entry is a single entry in an instance of MapAnyFloat32.
type MapAnyFloat64 ¶
type MapAnyFloat64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v float64) MapAnyFloat64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *float64) MapAnyFloat64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v float64) MapAnyFloat64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v float64) MapAnyFloat64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value float64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float64 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Float64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyFloat64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyFloat64 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v float64)) MapAnyFloat64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyFloat64 }
MapAnyFloat64 defines an ordered map of interface{} to float64.
func NewMapAnyFloat64 ¶
func NewMapAnyFloat64(size int) MapAnyFloat64
NewMapAnyFloat64 creates a new instance of MapAnyFloat64 presized to the given size.
type MapAnyFloat64Entry ¶
type MapAnyFloat64Entry struct { Key interface{} `json:"key"` Val float64 `json:"value"` }
MapAnyFloat64Entry is a single entry in an instance of MapAnyFloat64.
type MapAnyInt ¶
type MapAnyInt interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v int) MapAnyInt // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *int) MapAnyInt // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v int) MapAnyInt // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v int) MapAnyInt // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value int, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int if an entry was found // with the key `k`. GetOpt(k interface{}) option.Int // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyIntEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyInt // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v int)) MapAnyInt // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyInt }
MapAnyInt defines an ordered map of interface{} to int.
func NewMapAnyInt ¶
NewMapAnyInt creates a new instance of MapAnyInt presized to the given size.
type MapAnyInt16 ¶
type MapAnyInt16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v int16) MapAnyInt16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *int16) MapAnyInt16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v int16) MapAnyInt16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v int16) MapAnyInt16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value int16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int16 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Int16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyInt16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyInt16 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v int16)) MapAnyInt16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyInt16 }
MapAnyInt16 defines an ordered map of interface{} to int16.
func NewMapAnyInt16 ¶
func NewMapAnyInt16(size int) MapAnyInt16
NewMapAnyInt16 creates a new instance of MapAnyInt16 presized to the given size.
type MapAnyInt16Entry ¶
type MapAnyInt16Entry struct { Key interface{} `json:"key"` Val int16 `json:"value"` }
MapAnyInt16Entry is a single entry in an instance of MapAnyInt16.
type MapAnyInt32 ¶
type MapAnyInt32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v int32) MapAnyInt32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *int32) MapAnyInt32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v int32) MapAnyInt32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v int32) MapAnyInt32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value int32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int32 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Int32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyInt32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyInt32 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v int32)) MapAnyInt32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyInt32 }
MapAnyInt32 defines an ordered map of interface{} to int32.
func NewMapAnyInt32 ¶
func NewMapAnyInt32(size int) MapAnyInt32
NewMapAnyInt32 creates a new instance of MapAnyInt32 presized to the given size.
type MapAnyInt32Entry ¶
type MapAnyInt32Entry struct { Key interface{} `json:"key"` Val int32 `json:"value"` }
MapAnyInt32Entry is a single entry in an instance of MapAnyInt32.
type MapAnyInt64 ¶
type MapAnyInt64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v int64) MapAnyInt64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *int64) MapAnyInt64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v int64) MapAnyInt64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v int64) MapAnyInt64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value int64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int64 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Int64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyInt64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyInt64 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v int64)) MapAnyInt64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyInt64 }
MapAnyInt64 defines an ordered map of interface{} to int64.
func NewMapAnyInt64 ¶
func NewMapAnyInt64(size int) MapAnyInt64
NewMapAnyInt64 creates a new instance of MapAnyInt64 presized to the given size.
type MapAnyInt64Entry ¶
type MapAnyInt64Entry struct { Key interface{} `json:"key"` Val int64 `json:"value"` }
MapAnyInt64Entry is a single entry in an instance of MapAnyInt64.
type MapAnyInt8 ¶
type MapAnyInt8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v int8) MapAnyInt8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *int8) MapAnyInt8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v int8) MapAnyInt8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v int8) MapAnyInt8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value int8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int8 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Int8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyInt8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyInt8 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v int8)) MapAnyInt8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyInt8 }
MapAnyInt8 defines an ordered map of interface{} to int8.
func NewMapAnyInt8 ¶
func NewMapAnyInt8(size int) MapAnyInt8
NewMapAnyInt8 creates a new instance of MapAnyInt8 presized to the given size.
type MapAnyInt8Entry ¶
type MapAnyInt8Entry struct { Key interface{} `json:"key"` Val int8 `json:"value"` }
MapAnyInt8Entry is a single entry in an instance of MapAnyInt8.
type MapAnyIntEntry ¶
type MapAnyIntEntry struct { Key interface{} `json:"key"` Val int `json:"value"` }
MapAnyIntEntry is a single entry in an instance of MapAnyInt.
type MapAnyRune ¶
type MapAnyRune interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v rune) MapAnyRune // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *rune) MapAnyRune // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v rune) MapAnyRune // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v rune) MapAnyRune // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value rune, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of rune if an entry was found // with the key `k`. GetOpt(k interface{}) option.Rune // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyRuneEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyRune // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v rune)) MapAnyRune // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyRune }
MapAnyRune defines an ordered map of interface{} to rune.
func NewMapAnyRune ¶
func NewMapAnyRune(size int) MapAnyRune
NewMapAnyRune creates a new instance of MapAnyRune presized to the given size.
type MapAnyRuneEntry ¶
type MapAnyRuneEntry struct { Key interface{} `json:"key"` Val rune `json:"value"` }
MapAnyRuneEntry is a single entry in an instance of MapAnyRune.
type MapAnyString ¶
type MapAnyString interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v string) MapAnyString // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *string) MapAnyString // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v string) MapAnyString // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v string) MapAnyString // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value string, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of string if an entry was found // with the key `k`. GetOpt(k interface{}) option.String // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyStringEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyString // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v string)) MapAnyString // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyString }
MapAnyString defines an ordered map of interface{} to string.
func NewMapAnyString ¶
func NewMapAnyString(size int) MapAnyString
NewMapAnyString creates a new instance of MapAnyString presized to the given size.
type MapAnyStringEntry ¶
type MapAnyStringEntry struct { Key interface{} `json:"key"` Val string `json:"value"` }
MapAnyStringEntry is a single entry in an instance of MapAnyString.
type MapAnyUint ¶
type MapAnyUint interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v uint) MapAnyUint // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *uint) MapAnyUint // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v uint) MapAnyUint // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v uint) MapAnyUint // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value uint, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint if an entry was found // with the key `k`. GetOpt(k interface{}) option.Uint // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyUintEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyUint // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v uint)) MapAnyUint // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyUint }
MapAnyUint defines an ordered map of interface{} to uint.
func NewMapAnyUint ¶
func NewMapAnyUint(size int) MapAnyUint
NewMapAnyUint creates a new instance of MapAnyUint presized to the given size.
type MapAnyUint16 ¶
type MapAnyUint16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v uint16) MapAnyUint16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *uint16) MapAnyUint16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v uint16) MapAnyUint16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v uint16) MapAnyUint16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value uint16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint16 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Uint16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyUint16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyUint16 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v uint16)) MapAnyUint16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyUint16 }
MapAnyUint16 defines an ordered map of interface{} to uint16.
func NewMapAnyUint16 ¶
func NewMapAnyUint16(size int) MapAnyUint16
NewMapAnyUint16 creates a new instance of MapAnyUint16 presized to the given size.
type MapAnyUint16Entry ¶
type MapAnyUint16Entry struct { Key interface{} `json:"key"` Val uint16 `json:"value"` }
MapAnyUint16Entry is a single entry in an instance of MapAnyUint16.
type MapAnyUint32 ¶
type MapAnyUint32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v uint32) MapAnyUint32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *uint32) MapAnyUint32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v uint32) MapAnyUint32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v uint32) MapAnyUint32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value uint32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint32 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Uint32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyUint32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyUint32 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v uint32)) MapAnyUint32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyUint32 }
MapAnyUint32 defines an ordered map of interface{} to uint32.
func NewMapAnyUint32 ¶
func NewMapAnyUint32(size int) MapAnyUint32
NewMapAnyUint32 creates a new instance of MapAnyUint32 presized to the given size.
type MapAnyUint32Entry ¶
type MapAnyUint32Entry struct { Key interface{} `json:"key"` Val uint32 `json:"value"` }
MapAnyUint32Entry is a single entry in an instance of MapAnyUint32.
type MapAnyUint64 ¶
type MapAnyUint64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v uint64) MapAnyUint64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *uint64) MapAnyUint64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v uint64) MapAnyUint64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v uint64) MapAnyUint64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value uint64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint64 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Uint64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyUint64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyUint64 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v uint64)) MapAnyUint64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyUint64 }
MapAnyUint64 defines an ordered map of interface{} to uint64.
func NewMapAnyUint64 ¶
func NewMapAnyUint64(size int) MapAnyUint64
NewMapAnyUint64 creates a new instance of MapAnyUint64 presized to the given size.
type MapAnyUint64Entry ¶
type MapAnyUint64Entry struct { Key interface{} `json:"key"` Val uint64 `json:"value"` }
MapAnyUint64Entry is a single entry in an instance of MapAnyUint64.
type MapAnyUint8 ¶
type MapAnyUint8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k interface{}, v uint8) MapAnyUint8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k interface{}, v *uint8) MapAnyUint8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k interface{}, v uint8) MapAnyUint8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k interface{}, v uint8) MapAnyUint8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k interface{}) (value uint8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint8 if an entry was found // with the key `k`. GetOpt(k interface{}) option.Uint8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapAnyUint8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k interface{}) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k interface{}) int Delete(k interface{}) MapAnyUint8 // ForEach calls the given function for for every entry in the map. ForEach(func(k interface{}, v uint8)) MapAnyUint8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapAnyUint8 }
MapAnyUint8 defines an ordered map of interface{} to uint8.
func NewMapAnyUint8 ¶
func NewMapAnyUint8(size int) MapAnyUint8
NewMapAnyUint8 creates a new instance of MapAnyUint8 presized to the given size.
type MapAnyUint8Entry ¶
type MapAnyUint8Entry struct { Key interface{} `json:"key"` Val uint8 `json:"value"` }
MapAnyUint8Entry is a single entry in an instance of MapAnyUint8.
type MapAnyUintEntry ¶
type MapAnyUintEntry struct { Key interface{} `json:"key"` Val uint `json:"value"` }
MapAnyUintEntry is a single entry in an instance of MapAnyUint.
type MapIntAny ¶
type MapIntAny interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v interface{}) MapIntAny // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v interface{}) MapIntAny // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v interface{}) MapIntAny // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v interface{}) MapIntAny // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value interface{}, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of interface{} if an entry was found // with the key `k`. GetOpt(k int) option.Untyped // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntAnyEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntAny // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v interface{})) MapIntAny // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntAny }
MapIntAny defines an ordered map of int to interface{}.
func NewMapIntAny ¶
NewMapIntAny creates a new instance of MapIntAny presized to the given size.
type MapIntAnyEntry ¶
type MapIntAnyEntry struct { Key int `json:"key"` Val interface{} `json:"value"` }
MapIntAnyEntry is a single entry in an instance of MapIntAny.
type MapIntBool ¶
type MapIntBool interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v bool) MapIntBool // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *bool) MapIntBool // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v bool) MapIntBool // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v bool) MapIntBool // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value bool, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of bool if an entry was found // with the key `k`. GetOpt(k int) option.Bool // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntBoolEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntBool // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v bool)) MapIntBool // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntBool }
MapIntBool defines an ordered map of int to bool.
func NewMapIntBool ¶
func NewMapIntBool(size int) MapIntBool
NewMapIntBool creates a new instance of MapIntBool presized to the given size.
type MapIntBoolEntry ¶
MapIntBoolEntry is a single entry in an instance of MapIntBool.
type MapIntByte ¶
type MapIntByte interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v byte) MapIntByte // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *byte) MapIntByte // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v byte) MapIntByte // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v byte) MapIntByte // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value byte, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of byte if an entry was found // with the key `k`. GetOpt(k int) option.Byte // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntByteEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntByte // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v byte)) MapIntByte // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntByte }
MapIntByte defines an ordered map of int to byte.
func NewMapIntByte ¶
func NewMapIntByte(size int) MapIntByte
NewMapIntByte creates a new instance of MapIntByte presized to the given size.
type MapIntByteEntry ¶
MapIntByteEntry is a single entry in an instance of MapIntByte.
type MapIntFloat32 ¶
type MapIntFloat32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v float32) MapIntFloat32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *float32) MapIntFloat32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v float32) MapIntFloat32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v float32) MapIntFloat32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value float32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float32 if an entry was found // with the key `k`. GetOpt(k int) option.Float32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntFloat32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntFloat32 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v float32)) MapIntFloat32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntFloat32 }
MapIntFloat32 defines an ordered map of int to float32.
func NewMapIntFloat32 ¶
func NewMapIntFloat32(size int) MapIntFloat32
NewMapIntFloat32 creates a new instance of MapIntFloat32 presized to the given size.
type MapIntFloat32Entry ¶
MapIntFloat32Entry is a single entry in an instance of MapIntFloat32.
type MapIntFloat64 ¶
type MapIntFloat64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v float64) MapIntFloat64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *float64) MapIntFloat64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v float64) MapIntFloat64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v float64) MapIntFloat64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value float64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float64 if an entry was found // with the key `k`. GetOpt(k int) option.Float64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntFloat64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntFloat64 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v float64)) MapIntFloat64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntFloat64 }
MapIntFloat64 defines an ordered map of int to float64.
func NewMapIntFloat64 ¶
func NewMapIntFloat64(size int) MapIntFloat64
NewMapIntFloat64 creates a new instance of MapIntFloat64 presized to the given size.
type MapIntFloat64Entry ¶
MapIntFloat64Entry is a single entry in an instance of MapIntFloat64.
type MapIntInt ¶
type MapIntInt interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v int) MapIntInt // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *int) MapIntInt // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v int) MapIntInt // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v int) MapIntInt // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value int, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int if an entry was found // with the key `k`. GetOpt(k int) option.Int // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntIntEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntInt // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v int)) MapIntInt // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntInt }
MapIntInt defines an ordered map of int to int.
func NewMapIntInt ¶
NewMapIntInt creates a new instance of MapIntInt presized to the given size.
type MapIntInt16 ¶
type MapIntInt16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v int16) MapIntInt16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *int16) MapIntInt16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v int16) MapIntInt16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v int16) MapIntInt16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value int16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int16 if an entry was found // with the key `k`. GetOpt(k int) option.Int16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntInt16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntInt16 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v int16)) MapIntInt16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntInt16 }
MapIntInt16 defines an ordered map of int to int16.
func NewMapIntInt16 ¶
func NewMapIntInt16(size int) MapIntInt16
NewMapIntInt16 creates a new instance of MapIntInt16 presized to the given size.
type MapIntInt16Entry ¶
MapIntInt16Entry is a single entry in an instance of MapIntInt16.
type MapIntInt32 ¶
type MapIntInt32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v int32) MapIntInt32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *int32) MapIntInt32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v int32) MapIntInt32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v int32) MapIntInt32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value int32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int32 if an entry was found // with the key `k`. GetOpt(k int) option.Int32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntInt32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntInt32 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v int32)) MapIntInt32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntInt32 }
MapIntInt32 defines an ordered map of int to int32.
func NewMapIntInt32 ¶
func NewMapIntInt32(size int) MapIntInt32
NewMapIntInt32 creates a new instance of MapIntInt32 presized to the given size.
type MapIntInt32Entry ¶
MapIntInt32Entry is a single entry in an instance of MapIntInt32.
type MapIntInt64 ¶
type MapIntInt64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v int64) MapIntInt64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *int64) MapIntInt64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v int64) MapIntInt64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v int64) MapIntInt64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value int64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int64 if an entry was found // with the key `k`. GetOpt(k int) option.Int64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntInt64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntInt64 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v int64)) MapIntInt64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntInt64 }
MapIntInt64 defines an ordered map of int to int64.
func NewMapIntInt64 ¶
func NewMapIntInt64(size int) MapIntInt64
NewMapIntInt64 creates a new instance of MapIntInt64 presized to the given size.
type MapIntInt64Entry ¶
MapIntInt64Entry is a single entry in an instance of MapIntInt64.
type MapIntInt8 ¶
type MapIntInt8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v int8) MapIntInt8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *int8) MapIntInt8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v int8) MapIntInt8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v int8) MapIntInt8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value int8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int8 if an entry was found // with the key `k`. GetOpt(k int) option.Int8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntInt8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntInt8 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v int8)) MapIntInt8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntInt8 }
MapIntInt8 defines an ordered map of int to int8.
func NewMapIntInt8 ¶
func NewMapIntInt8(size int) MapIntInt8
NewMapIntInt8 creates a new instance of MapIntInt8 presized to the given size.
type MapIntInt8Entry ¶
MapIntInt8Entry is a single entry in an instance of MapIntInt8.
type MapIntIntEntry ¶
MapIntIntEntry is a single entry in an instance of MapIntInt.
type MapIntRune ¶
type MapIntRune interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v rune) MapIntRune // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *rune) MapIntRune // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v rune) MapIntRune // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v rune) MapIntRune // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value rune, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of rune if an entry was found // with the key `k`. GetOpt(k int) option.Rune // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntRuneEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntRune // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v rune)) MapIntRune // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntRune }
MapIntRune defines an ordered map of int to rune.
func NewMapIntRune ¶
func NewMapIntRune(size int) MapIntRune
NewMapIntRune creates a new instance of MapIntRune presized to the given size.
type MapIntRuneEntry ¶
MapIntRuneEntry is a single entry in an instance of MapIntRune.
type MapIntString ¶
type MapIntString interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v string) MapIntString // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *string) MapIntString // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v string) MapIntString // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v string) MapIntString // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value string, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of string if an entry was found // with the key `k`. GetOpt(k int) option.String // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntStringEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntString // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v string)) MapIntString // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntString }
MapIntString defines an ordered map of int to string.
func NewMapIntString ¶
func NewMapIntString(size int) MapIntString
NewMapIntString creates a new instance of MapIntString presized to the given size.
type MapIntStringEntry ¶
MapIntStringEntry is a single entry in an instance of MapIntString.
type MapIntUint ¶
type MapIntUint interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v uint) MapIntUint // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *uint) MapIntUint // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v uint) MapIntUint // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v uint) MapIntUint // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value uint, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint if an entry was found // with the key `k`. GetOpt(k int) option.Uint // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntUintEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntUint // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v uint)) MapIntUint // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntUint }
MapIntUint defines an ordered map of int to uint.
func NewMapIntUint ¶
func NewMapIntUint(size int) MapIntUint
NewMapIntUint creates a new instance of MapIntUint presized to the given size.
type MapIntUint16 ¶
type MapIntUint16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v uint16) MapIntUint16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *uint16) MapIntUint16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v uint16) MapIntUint16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v uint16) MapIntUint16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value uint16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint16 if an entry was found // with the key `k`. GetOpt(k int) option.Uint16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntUint16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntUint16 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v uint16)) MapIntUint16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntUint16 }
MapIntUint16 defines an ordered map of int to uint16.
func NewMapIntUint16 ¶
func NewMapIntUint16(size int) MapIntUint16
NewMapIntUint16 creates a new instance of MapIntUint16 presized to the given size.
type MapIntUint16Entry ¶
MapIntUint16Entry is a single entry in an instance of MapIntUint16.
type MapIntUint32 ¶
type MapIntUint32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v uint32) MapIntUint32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *uint32) MapIntUint32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v uint32) MapIntUint32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v uint32) MapIntUint32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value uint32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint32 if an entry was found // with the key `k`. GetOpt(k int) option.Uint32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntUint32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntUint32 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v uint32)) MapIntUint32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntUint32 }
MapIntUint32 defines an ordered map of int to uint32.
func NewMapIntUint32 ¶
func NewMapIntUint32(size int) MapIntUint32
NewMapIntUint32 creates a new instance of MapIntUint32 presized to the given size.
type MapIntUint32Entry ¶
MapIntUint32Entry is a single entry in an instance of MapIntUint32.
type MapIntUint64 ¶
type MapIntUint64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v uint64) MapIntUint64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *uint64) MapIntUint64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v uint64) MapIntUint64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v uint64) MapIntUint64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value uint64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint64 if an entry was found // with the key `k`. GetOpt(k int) option.Uint64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntUint64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntUint64 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v uint64)) MapIntUint64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntUint64 }
MapIntUint64 defines an ordered map of int to uint64.
func NewMapIntUint64 ¶
func NewMapIntUint64(size int) MapIntUint64
NewMapIntUint64 creates a new instance of MapIntUint64 presized to the given size.
type MapIntUint64Entry ¶
MapIntUint64Entry is a single entry in an instance of MapIntUint64.
type MapIntUint8 ¶
type MapIntUint8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k int, v uint8) MapIntUint8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k int, v *uint8) MapIntUint8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k int, v uint8) MapIntUint8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k int, v uint8) MapIntUint8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k int) (value uint8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint8 if an entry was found // with the key `k`. GetOpt(k int) option.Uint8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapIntUint8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k int) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k int) int Delete(k int) MapIntUint8 // ForEach calls the given function for for every entry in the map. ForEach(func(k int, v uint8)) MapIntUint8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapIntUint8 }
MapIntUint8 defines an ordered map of int to uint8.
func NewMapIntUint8 ¶
func NewMapIntUint8(size int) MapIntUint8
NewMapIntUint8 creates a new instance of MapIntUint8 presized to the given size.
type MapIntUint8Entry ¶
MapIntUint8Entry is a single entry in an instance of MapIntUint8.
type MapIntUintEntry ¶
MapIntUintEntry is a single entry in an instance of MapIntUint.
type MapStringAny ¶
type MapStringAny interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v interface{}) MapStringAny // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v interface{}) MapStringAny // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v interface{}) MapStringAny // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v interface{}) MapStringAny // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value interface{}, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of interface{} if an entry was found // with the key `k`. GetOpt(k string) option.Untyped // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringAnyEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringAny // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v interface{})) MapStringAny // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringAny }
MapStringAny defines an ordered map of string to interface{}.
func NewMapStringAny ¶
func NewMapStringAny(size int) MapStringAny
NewMapStringAny creates a new instance of MapStringAny presized to the given size.
type MapStringAnyEntry ¶
type MapStringAnyEntry struct { Key string `json:"key"` Val interface{} `json:"value"` }
MapStringAnyEntry is a single entry in an instance of MapStringAny.
type MapStringBool ¶
type MapStringBool interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v bool) MapStringBool // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *bool) MapStringBool // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v bool) MapStringBool // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v bool) MapStringBool // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value bool, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of bool if an entry was found // with the key `k`. GetOpt(k string) option.Bool // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringBoolEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringBool // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v bool)) MapStringBool // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringBool }
MapStringBool defines an ordered map of string to bool.
func NewMapStringBool ¶
func NewMapStringBool(size int) MapStringBool
NewMapStringBool creates a new instance of MapStringBool presized to the given size.
type MapStringBoolEntry ¶
MapStringBoolEntry is a single entry in an instance of MapStringBool.
type MapStringByte ¶
type MapStringByte interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v byte) MapStringByte // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *byte) MapStringByte // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v byte) MapStringByte // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v byte) MapStringByte // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value byte, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of byte if an entry was found // with the key `k`. GetOpt(k string) option.Byte // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringByteEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringByte // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v byte)) MapStringByte // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringByte }
MapStringByte defines an ordered map of string to byte.
func NewMapStringByte ¶
func NewMapStringByte(size int) MapStringByte
NewMapStringByte creates a new instance of MapStringByte presized to the given size.
type MapStringByteEntry ¶
MapStringByteEntry is a single entry in an instance of MapStringByte.
type MapStringFloat32 ¶
type MapStringFloat32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v float32) MapStringFloat32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *float32) MapStringFloat32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v float32) MapStringFloat32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v float32) MapStringFloat32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value float32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float32 if an entry was found // with the key `k`. GetOpt(k string) option.Float32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringFloat32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringFloat32 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v float32)) MapStringFloat32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringFloat32 }
MapStringFloat32 defines an ordered map of string to float32.
func NewMapStringFloat32 ¶
func NewMapStringFloat32(size int) MapStringFloat32
NewMapStringFloat32 creates a new instance of MapStringFloat32 presized to the given size.
type MapStringFloat32Entry ¶
MapStringFloat32Entry is a single entry in an instance of MapStringFloat32.
type MapStringFloat64 ¶
type MapStringFloat64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v float64) MapStringFloat64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *float64) MapStringFloat64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v float64) MapStringFloat64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v float64) MapStringFloat64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value float64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float64 if an entry was found // with the key `k`. GetOpt(k string) option.Float64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringFloat64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringFloat64 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v float64)) MapStringFloat64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringFloat64 }
MapStringFloat64 defines an ordered map of string to float64.
func NewMapStringFloat64 ¶
func NewMapStringFloat64(size int) MapStringFloat64
NewMapStringFloat64 creates a new instance of MapStringFloat64 presized to the given size.
type MapStringFloat64Entry ¶
MapStringFloat64Entry is a single entry in an instance of MapStringFloat64.
type MapStringInt ¶
type MapStringInt interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v int) MapStringInt // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *int) MapStringInt // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v int) MapStringInt // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v int) MapStringInt // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value int, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int if an entry was found // with the key `k`. GetOpt(k string) option.Int // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringIntEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringInt // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v int)) MapStringInt // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringInt }
MapStringInt defines an ordered map of string to int.
func NewMapStringInt ¶
func NewMapStringInt(size int) MapStringInt
NewMapStringInt creates a new instance of MapStringInt presized to the given size.
type MapStringInt16 ¶
type MapStringInt16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v int16) MapStringInt16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *int16) MapStringInt16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v int16) MapStringInt16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v int16) MapStringInt16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value int16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int16 if an entry was found // with the key `k`. GetOpt(k string) option.Int16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringInt16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringInt16 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v int16)) MapStringInt16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringInt16 }
MapStringInt16 defines an ordered map of string to int16.
func NewMapStringInt16 ¶
func NewMapStringInt16(size int) MapStringInt16
NewMapStringInt16 creates a new instance of MapStringInt16 presized to the given size.
type MapStringInt16Entry ¶
MapStringInt16Entry is a single entry in an instance of MapStringInt16.
type MapStringInt32 ¶
type MapStringInt32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v int32) MapStringInt32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *int32) MapStringInt32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v int32) MapStringInt32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v int32) MapStringInt32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value int32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int32 if an entry was found // with the key `k`. GetOpt(k string) option.Int32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringInt32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringInt32 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v int32)) MapStringInt32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringInt32 }
MapStringInt32 defines an ordered map of string to int32.
func NewMapStringInt32 ¶
func NewMapStringInt32(size int) MapStringInt32
NewMapStringInt32 creates a new instance of MapStringInt32 presized to the given size.
type MapStringInt32Entry ¶
MapStringInt32Entry is a single entry in an instance of MapStringInt32.
type MapStringInt64 ¶
type MapStringInt64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v int64) MapStringInt64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *int64) MapStringInt64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v int64) MapStringInt64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v int64) MapStringInt64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value int64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int64 if an entry was found // with the key `k`. GetOpt(k string) option.Int64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringInt64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringInt64 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v int64)) MapStringInt64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringInt64 }
MapStringInt64 defines an ordered map of string to int64.
func NewMapStringInt64 ¶
func NewMapStringInt64(size int) MapStringInt64
NewMapStringInt64 creates a new instance of MapStringInt64 presized to the given size.
type MapStringInt64Entry ¶
MapStringInt64Entry is a single entry in an instance of MapStringInt64.
type MapStringInt8 ¶
type MapStringInt8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v int8) MapStringInt8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *int8) MapStringInt8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v int8) MapStringInt8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v int8) MapStringInt8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value int8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int8 if an entry was found // with the key `k`. GetOpt(k string) option.Int8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringInt8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringInt8 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v int8)) MapStringInt8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringInt8 }
MapStringInt8 defines an ordered map of string to int8.
func NewMapStringInt8 ¶
func NewMapStringInt8(size int) MapStringInt8
NewMapStringInt8 creates a new instance of MapStringInt8 presized to the given size.
type MapStringInt8Entry ¶
MapStringInt8Entry is a single entry in an instance of MapStringInt8.
type MapStringIntEntry ¶
MapStringIntEntry is a single entry in an instance of MapStringInt.
type MapStringRune ¶
type MapStringRune interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v rune) MapStringRune // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *rune) MapStringRune // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v rune) MapStringRune // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v rune) MapStringRune // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value rune, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of rune if an entry was found // with the key `k`. GetOpt(k string) option.Rune // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringRuneEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringRune // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v rune)) MapStringRune // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringRune }
MapStringRune defines an ordered map of string to rune.
func NewMapStringRune ¶
func NewMapStringRune(size int) MapStringRune
NewMapStringRune creates a new instance of MapStringRune presized to the given size.
type MapStringRuneEntry ¶
MapStringRuneEntry is a single entry in an instance of MapStringRune.
type MapStringString ¶
type MapStringString interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v string) MapStringString // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *string) MapStringString // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v string) MapStringString // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v string) MapStringString // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value string, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of string if an entry was found // with the key `k`. GetOpt(k string) option.String // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringStringEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringString // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v string)) MapStringString // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringString }
MapStringString defines an ordered map of string to string.
func NewMapStringString ¶
func NewMapStringString(size int) MapStringString
NewMapStringString creates a new instance of MapStringString presized to the given size.
type MapStringStringEntry ¶
MapStringStringEntry is a single entry in an instance of MapStringString.
type MapStringUint ¶
type MapStringUint interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v uint) MapStringUint // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *uint) MapStringUint // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v uint) MapStringUint // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v uint) MapStringUint // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value uint, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint if an entry was found // with the key `k`. GetOpt(k string) option.Uint // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringUintEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringUint // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v uint)) MapStringUint // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringUint }
MapStringUint defines an ordered map of string to uint.
func NewMapStringUint ¶
func NewMapStringUint(size int) MapStringUint
NewMapStringUint creates a new instance of MapStringUint presized to the given size.
type MapStringUint16 ¶
type MapStringUint16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v uint16) MapStringUint16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *uint16) MapStringUint16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v uint16) MapStringUint16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v uint16) MapStringUint16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value uint16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint16 if an entry was found // with the key `k`. GetOpt(k string) option.Uint16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringUint16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringUint16 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v uint16)) MapStringUint16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringUint16 }
MapStringUint16 defines an ordered map of string to uint16.
func NewMapStringUint16 ¶
func NewMapStringUint16(size int) MapStringUint16
NewMapStringUint16 creates a new instance of MapStringUint16 presized to the given size.
type MapStringUint16Entry ¶
MapStringUint16Entry is a single entry in an instance of MapStringUint16.
type MapStringUint32 ¶
type MapStringUint32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v uint32) MapStringUint32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *uint32) MapStringUint32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v uint32) MapStringUint32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v uint32) MapStringUint32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value uint32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint32 if an entry was found // with the key `k`. GetOpt(k string) option.Uint32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringUint32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringUint32 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v uint32)) MapStringUint32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringUint32 }
MapStringUint32 defines an ordered map of string to uint32.
func NewMapStringUint32 ¶
func NewMapStringUint32(size int) MapStringUint32
NewMapStringUint32 creates a new instance of MapStringUint32 presized to the given size.
type MapStringUint32Entry ¶
MapStringUint32Entry is a single entry in an instance of MapStringUint32.
type MapStringUint64 ¶
type MapStringUint64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v uint64) MapStringUint64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *uint64) MapStringUint64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v uint64) MapStringUint64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v uint64) MapStringUint64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value uint64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint64 if an entry was found // with the key `k`. GetOpt(k string) option.Uint64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringUint64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringUint64 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v uint64)) MapStringUint64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringUint64 }
MapStringUint64 defines an ordered map of string to uint64.
func NewMapStringUint64 ¶
func NewMapStringUint64(size int) MapStringUint64
NewMapStringUint64 creates a new instance of MapStringUint64 presized to the given size.
type MapStringUint64Entry ¶
MapStringUint64Entry is a single entry in an instance of MapStringUint64.
type MapStringUint8 ¶
type MapStringUint8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k string, v uint8) MapStringUint8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k string, v *uint8) MapStringUint8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k string, v uint8) MapStringUint8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k string, v uint8) MapStringUint8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k string) (value uint8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint8 if an entry was found // with the key `k`. GetOpt(k string) option.Uint8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapStringUint8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k string) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k string) int Delete(k string) MapStringUint8 // ForEach calls the given function for for every entry in the map. ForEach(func(k string, v uint8)) MapStringUint8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapStringUint8 }
MapStringUint8 defines an ordered map of string to uint8.
func NewMapStringUint8 ¶
func NewMapStringUint8(size int) MapStringUint8
NewMapStringUint8 creates a new instance of MapStringUint8 presized to the given size.
type MapStringUint8Entry ¶
MapStringUint8Entry is a single entry in an instance of MapStringUint8.
type MapStringUintEntry ¶
MapStringUintEntry is a single entry in an instance of MapStringUint.
type MapUintAny ¶
type MapUintAny interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v interface{}) MapUintAny // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v interface{}) MapUintAny // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v interface{}) MapUintAny // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v interface{}) MapUintAny // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value interface{}, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of interface{} if an entry was found // with the key `k`. GetOpt(k uint) option.Untyped // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintAnyEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintAny // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v interface{})) MapUintAny // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintAny }
MapUintAny defines an ordered map of uint to interface{}.
func NewMapUintAny ¶
func NewMapUintAny(size int) MapUintAny
NewMapUintAny creates a new instance of MapUintAny presized to the given size.
type MapUintAnyEntry ¶
type MapUintAnyEntry struct { Key uint `json:"key"` Val interface{} `json:"value"` }
MapUintAnyEntry is a single entry in an instance of MapUintAny.
type MapUintBool ¶
type MapUintBool interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v bool) MapUintBool // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *bool) MapUintBool // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v bool) MapUintBool // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v bool) MapUintBool // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value bool, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of bool if an entry was found // with the key `k`. GetOpt(k uint) option.Bool // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintBoolEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintBool // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v bool)) MapUintBool // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintBool }
MapUintBool defines an ordered map of uint to bool.
func NewMapUintBool ¶
func NewMapUintBool(size int) MapUintBool
NewMapUintBool creates a new instance of MapUintBool presized to the given size.
type MapUintBoolEntry ¶
MapUintBoolEntry is a single entry in an instance of MapUintBool.
type MapUintByte ¶
type MapUintByte interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v byte) MapUintByte // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *byte) MapUintByte // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v byte) MapUintByte // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v byte) MapUintByte // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value byte, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of byte if an entry was found // with the key `k`. GetOpt(k uint) option.Byte // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintByteEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintByte // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v byte)) MapUintByte // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintByte }
MapUintByte defines an ordered map of uint to byte.
func NewMapUintByte ¶
func NewMapUintByte(size int) MapUintByte
NewMapUintByte creates a new instance of MapUintByte presized to the given size.
type MapUintByteEntry ¶
MapUintByteEntry is a single entry in an instance of MapUintByte.
type MapUintFloat32 ¶
type MapUintFloat32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v float32) MapUintFloat32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *float32) MapUintFloat32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v float32) MapUintFloat32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v float32) MapUintFloat32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value float32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float32 if an entry was found // with the key `k`. GetOpt(k uint) option.Float32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintFloat32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintFloat32 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v float32)) MapUintFloat32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintFloat32 }
MapUintFloat32 defines an ordered map of uint to float32.
func NewMapUintFloat32 ¶
func NewMapUintFloat32(size int) MapUintFloat32
NewMapUintFloat32 creates a new instance of MapUintFloat32 presized to the given size.
type MapUintFloat32Entry ¶
MapUintFloat32Entry is a single entry in an instance of MapUintFloat32.
type MapUintFloat64 ¶
type MapUintFloat64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v float64) MapUintFloat64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *float64) MapUintFloat64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v float64) MapUintFloat64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v float64) MapUintFloat64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value float64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of float64 if an entry was found // with the key `k`. GetOpt(k uint) option.Float64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintFloat64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintFloat64 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v float64)) MapUintFloat64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintFloat64 }
MapUintFloat64 defines an ordered map of uint to float64.
func NewMapUintFloat64 ¶
func NewMapUintFloat64(size int) MapUintFloat64
NewMapUintFloat64 creates a new instance of MapUintFloat64 presized to the given size.
type MapUintFloat64Entry ¶
MapUintFloat64Entry is a single entry in an instance of MapUintFloat64.
type MapUintInt ¶
type MapUintInt interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v int) MapUintInt // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *int) MapUintInt // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v int) MapUintInt // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v int) MapUintInt // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value int, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int if an entry was found // with the key `k`. GetOpt(k uint) option.Int // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintIntEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintInt // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v int)) MapUintInt // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintInt }
MapUintInt defines an ordered map of uint to int.
func NewMapUintInt ¶
func NewMapUintInt(size int) MapUintInt
NewMapUintInt creates a new instance of MapUintInt presized to the given size.
type MapUintInt16 ¶
type MapUintInt16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v int16) MapUintInt16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *int16) MapUintInt16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v int16) MapUintInt16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v int16) MapUintInt16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value int16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int16 if an entry was found // with the key `k`. GetOpt(k uint) option.Int16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintInt16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintInt16 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v int16)) MapUintInt16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintInt16 }
MapUintInt16 defines an ordered map of uint to int16.
func NewMapUintInt16 ¶
func NewMapUintInt16(size int) MapUintInt16
NewMapUintInt16 creates a new instance of MapUintInt16 presized to the given size.
type MapUintInt16Entry ¶
MapUintInt16Entry is a single entry in an instance of MapUintInt16.
type MapUintInt32 ¶
type MapUintInt32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v int32) MapUintInt32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *int32) MapUintInt32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v int32) MapUintInt32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v int32) MapUintInt32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value int32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int32 if an entry was found // with the key `k`. GetOpt(k uint) option.Int32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintInt32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintInt32 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v int32)) MapUintInt32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintInt32 }
MapUintInt32 defines an ordered map of uint to int32.
func NewMapUintInt32 ¶
func NewMapUintInt32(size int) MapUintInt32
NewMapUintInt32 creates a new instance of MapUintInt32 presized to the given size.
type MapUintInt32Entry ¶
MapUintInt32Entry is a single entry in an instance of MapUintInt32.
type MapUintInt64 ¶
type MapUintInt64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v int64) MapUintInt64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *int64) MapUintInt64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v int64) MapUintInt64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v int64) MapUintInt64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value int64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int64 if an entry was found // with the key `k`. GetOpt(k uint) option.Int64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintInt64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintInt64 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v int64)) MapUintInt64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintInt64 }
MapUintInt64 defines an ordered map of uint to int64.
func NewMapUintInt64 ¶
func NewMapUintInt64(size int) MapUintInt64
NewMapUintInt64 creates a new instance of MapUintInt64 presized to the given size.
type MapUintInt64Entry ¶
MapUintInt64Entry is a single entry in an instance of MapUintInt64.
type MapUintInt8 ¶
type MapUintInt8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v int8) MapUintInt8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *int8) MapUintInt8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v int8) MapUintInt8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v int8) MapUintInt8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value int8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of int8 if an entry was found // with the key `k`. GetOpt(k uint) option.Int8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintInt8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintInt8 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v int8)) MapUintInt8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintInt8 }
MapUintInt8 defines an ordered map of uint to int8.
func NewMapUintInt8 ¶
func NewMapUintInt8(size int) MapUintInt8
NewMapUintInt8 creates a new instance of MapUintInt8 presized to the given size.
type MapUintInt8Entry ¶
MapUintInt8Entry is a single entry in an instance of MapUintInt8.
type MapUintIntEntry ¶
MapUintIntEntry is a single entry in an instance of MapUintInt.
type MapUintRune ¶
type MapUintRune interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v rune) MapUintRune // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *rune) MapUintRune // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v rune) MapUintRune // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v rune) MapUintRune // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value rune, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of rune if an entry was found // with the key `k`. GetOpt(k uint) option.Rune // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintRuneEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintRune // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v rune)) MapUintRune // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintRune }
MapUintRune defines an ordered map of uint to rune.
func NewMapUintRune ¶
func NewMapUintRune(size int) MapUintRune
NewMapUintRune creates a new instance of MapUintRune presized to the given size.
type MapUintRuneEntry ¶
MapUintRuneEntry is a single entry in an instance of MapUintRune.
type MapUintString ¶
type MapUintString interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v string) MapUintString // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *string) MapUintString // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v string) MapUintString // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v string) MapUintString // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value string, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of string if an entry was found // with the key `k`. GetOpt(k uint) option.String // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintStringEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintString // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v string)) MapUintString // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintString }
MapUintString defines an ordered map of uint to string.
func NewMapUintString ¶
func NewMapUintString(size int) MapUintString
NewMapUintString creates a new instance of MapUintString presized to the given size.
type MapUintStringEntry ¶
MapUintStringEntry is a single entry in an instance of MapUintString.
type MapUintUint ¶
type MapUintUint interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v uint) MapUintUint // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *uint) MapUintUint // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v uint) MapUintUint // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v uint) MapUintUint // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value uint, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint if an entry was found // with the key `k`. GetOpt(k uint) option.Uint // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintUintEntry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintUint // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v uint)) MapUintUint // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintUint }
MapUintUint defines an ordered map of uint to uint.
func NewMapUintUint ¶
func NewMapUintUint(size int) MapUintUint
NewMapUintUint creates a new instance of MapUintUint presized to the given size.
type MapUintUint16 ¶
type MapUintUint16 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v uint16) MapUintUint16 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *uint16) MapUintUint16 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v uint16) MapUintUint16 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v uint16) MapUintUint16 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value uint16, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint16 if an entry was found // with the key `k`. GetOpt(k uint) option.Uint16 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintUint16Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintUint16 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v uint16)) MapUintUint16 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintUint16 }
MapUintUint16 defines an ordered map of uint to uint16.
func NewMapUintUint16 ¶
func NewMapUintUint16(size int) MapUintUint16
NewMapUintUint16 creates a new instance of MapUintUint16 presized to the given size.
type MapUintUint16Entry ¶
MapUintUint16Entry is a single entry in an instance of MapUintUint16.
type MapUintUint32 ¶
type MapUintUint32 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v uint32) MapUintUint32 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *uint32) MapUintUint32 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v uint32) MapUintUint32 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v uint32) MapUintUint32 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value uint32, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint32 if an entry was found // with the key `k`. GetOpt(k uint) option.Uint32 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintUint32Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintUint32 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v uint32)) MapUintUint32 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintUint32 }
MapUintUint32 defines an ordered map of uint to uint32.
func NewMapUintUint32 ¶
func NewMapUintUint32(size int) MapUintUint32
NewMapUintUint32 creates a new instance of MapUintUint32 presized to the given size.
type MapUintUint32Entry ¶
MapUintUint32Entry is a single entry in an instance of MapUintUint32.
type MapUintUint64 ¶
type MapUintUint64 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v uint64) MapUintUint64 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *uint64) MapUintUint64 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v uint64) MapUintUint64 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v uint64) MapUintUint64 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value uint64, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint64 if an entry was found // with the key `k`. GetOpt(k uint) option.Uint64 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintUint64Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintUint64 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v uint64)) MapUintUint64 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintUint64 }
MapUintUint64 defines an ordered map of uint to uint64.
func NewMapUintUint64 ¶
func NewMapUintUint64(size int) MapUintUint64
NewMapUintUint64 creates a new instance of MapUintUint64 presized to the given size.
type MapUintUint64Entry ¶
MapUintUint64Entry is a single entry in an instance of MapUintUint64.
type MapUintUint8 ¶
type MapUintUint8 interface { yaml.Marshaler json.Marshaler xyml.Marshaler // Put appends the given key/value pair to the end of the map. // // If the map already contains an entry with the key `k`, then it will be // removed. The new value will still be appended to the end of the map. Put(k uint, v uint8) MapUintUint8 // PutIfNotNil appends the given key/pair value to the end of the map if the // `v` pointer is not nil. // // If the map already contains an entry with the key `k`, then it will be // removed only if `v` is not nil. Follows the same ordering/removal rules as // Put. PutIfNotNil(k uint, v *uint8) MapUintUint8 // ReplaceOrPut either replaces the existing entry keyed at `k` without // changing the map ordering or appends the given key/value pair to the end of // the map if no entry with the key `k` exists. ReplaceOrPut(k uint, v uint8) MapUintUint8 // ReplaceIfExists replaces the value at key `k` with the given value `v` // without changing the map ordering. // // If no entry in the map currently exists with the key `k` this method does // nothing. ReplaceIfExists(k uint, v uint8) MapUintUint8 // Get looks up the value in the map with the given key `k`. // // Returns a value and a boolean value indicating whether the value was found. Get(k uint) (value uint8, exists bool) // GetOpt looks up the value in the map with the given key `k` and returns // an option which will contain an option of uint8 if an entry was found // with the key `k`. GetOpt(k uint) option.Uint8 // At returns the key/value pair at the given index. // // This method makes no attempt to verify that the index given actually exists // in the map. At(i int) MapUintUint8Entry // Len returns the current size of the map. Len() int // Has returns whether an entry exists with the key `k`. Has(k uint) bool // Has returns the position in the map of the entry matching key `k`. // // If no entry exists in the map with key `k` this method returns -1. // // Note: this method may iterate, at most once, through all the entries in the // map. IndexOf(k uint) int Delete(k uint) MapUintUint8 // ForEach calls the given function for for every entry in the map. ForEach(func(k uint, v uint8)) MapUintUint8 // SerializeOrdered sets whether or not the ordering should be enforced by // type when serializing the map. // // If set to true (the default value), the output will use an ordered type // when serializing (array for json, ordered map for yaml). If set to false // the map will be serialized as a map/struct type and property ordering will // be determined by the serialization library. SerializeOrdered(bool) MapUintUint8 }
MapUintUint8 defines an ordered map of uint to uint8.
func NewMapUintUint8 ¶
func NewMapUintUint8(size int) MapUintUint8
NewMapUintUint8 creates a new instance of MapUintUint8 presized to the given size.
type MapUintUint8Entry ¶
MapUintUint8Entry is a single entry in an instance of MapUintUint8.
type MapUintUintEntry ¶
MapUintUintEntry is a single entry in an instance of MapUintUint.
Source Files ¶
- MapAny.go
- MapAnyBool.go
- MapAnyByte.go
- MapAnyFloat32.go
- MapAnyFloat64.go
- MapAnyInt.go
- MapAnyInt16.go
- MapAnyInt32.go
- MapAnyInt64.go
- MapAnyInt8.go
- MapAnyRune.go
- MapAnyString.go
- MapAnyUint.go
- MapAnyUint16.go
- MapAnyUint32.go
- MapAnyUint64.go
- MapAnyUint8.go
- MapIntAny.go
- MapIntBool.go
- MapIntByte.go
- MapIntFloat32.go
- MapIntFloat64.go
- MapIntInt.go
- MapIntInt16.go
- MapIntInt32.go
- MapIntInt64.go
- MapIntInt8.go
- MapIntRune.go
- MapIntString.go
- MapIntUint.go
- MapIntUint16.go
- MapIntUint32.go
- MapIntUint64.go
- MapIntUint8.go
- MapStringAny.go
- MapStringBool.go
- MapStringByte.go
- MapStringFloat32.go
- MapStringFloat64.go
- MapStringInt.go
- MapStringInt16.go
- MapStringInt32.go
- MapStringInt64.go
- MapStringInt8.go
- MapStringRune.go
- MapStringString.go
- MapStringUint.go
- MapStringUint16.go
- MapStringUint32.go
- MapStringUint64.go
- MapStringUint8.go
- MapUintAny.go
- MapUintBool.go
- MapUintByte.go
- MapUintFloat32.go
- MapUintFloat64.go
- MapUintInt.go
- MapUintInt16.go
- MapUintInt32.go
- MapUintInt64.go
- MapUintInt8.go
- MapUintRune.go
- MapUintString.go
- MapUintUint.go
- MapUintUint16.go
- MapUintUint32.go
- MapUintUint64.go
- MapUintUint8.go