Documentation ¶
Index ¶
- Constants
- type SSortedMap
- func Add(ss SSortedMap, key string, value interface{}) SSortedMap
- func Delete(ss SSortedMap, key string) (SSortedMap, bool)
- func DeleteIgnoreCase(ss SSortedMap, key string) (SSortedMap, string, bool)
- func Merge(a, b SSortedMap) SSortedMap
- func NewSortedMap() SSortedMap
- func NewSortedMapFromMap(omap map[string]interface{}) SSortedMap
- func NewSortedMapFromMapWithCapa(omap map[string]interface{}, capa int) SSortedMap
- func NewSortedMapWithCapa(capa int) SSortedMap
- func Split(a, b SSortedMap) (a_b, anbA, anbB, b_a SSortedMap)
- func (ss SSortedMap) Contains(needle string) bool
- func (ss SSortedMap) ContainsAll(needles ...string) bool
- func (ss SSortedMap) ContainsAny(needles ...string) bool
- func (ss SSortedMap) Get(key string) (interface{}, bool)
- func (ss SSortedMap) GetIgnoreCase(key string) (interface{}, string, bool)
- func (ss SSortedMap) Keys() []string
- type SSortedMapIterator
Constants ¶
View Source
const (
INIT_CAPA = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSortedMap ¶
type SSortedMap []sItem
func Add ¶
func Add(ss SSortedMap, key string, value interface{}) SSortedMap
func Delete ¶
func Delete(ss SSortedMap, key string) (SSortedMap, bool)
func DeleteIgnoreCase ¶
func DeleteIgnoreCase(ss SSortedMap, key string) (SSortedMap, string, bool)
func Merge ¶
func Merge(a, b SSortedMap) SSortedMap
order matters, values of the latter override the former
func NewSortedMap ¶
func NewSortedMap() SSortedMap
func NewSortedMapFromMap ¶
func NewSortedMapFromMap(omap map[string]interface{}) SSortedMap
func NewSortedMapFromMapWithCapa ¶
func NewSortedMapFromMapWithCapa(omap map[string]interface{}, capa int) SSortedMap
func NewSortedMapWithCapa ¶
func NewSortedMapWithCapa(capa int) SSortedMap
func Split ¶
func Split(a, b SSortedMap) (a_b, anbA, anbB, b_a SSortedMap)
func (SSortedMap) Contains ¶
func (ss SSortedMap) Contains(needle string) bool
func (SSortedMap) ContainsAll ¶
func (ss SSortedMap) ContainsAll(needles ...string) bool
func (SSortedMap) ContainsAny ¶
func (ss SSortedMap) ContainsAny(needles ...string) bool
func (SSortedMap) Get ¶
func (ss SSortedMap) Get(key string) (interface{}, bool)
func (SSortedMap) GetIgnoreCase ¶
func (ss SSortedMap) GetIgnoreCase(key string) (interface{}, string, bool)
func (SSortedMap) Keys ¶
func (ss SSortedMap) Keys() []string
type SSortedMapIterator ¶
type SSortedMapIterator struct {
// contains filtered or unexported fields
}
func NewIterator ¶
func NewIterator(smap SSortedMap) *SSortedMapIterator
func (SSortedMapIterator) Get ¶
func (i SSortedMapIterator) Get() (string, interface{})
func (SSortedMapIterator) HasMore ¶
func (i SSortedMapIterator) HasMore() bool
func (*SSortedMapIterator) Init ¶
func (i *SSortedMapIterator) Init(smap SSortedMap)
func (*SSortedMapIterator) Next ¶
func (i *SSortedMapIterator) Next()
Click to show internal directories.
Click to hide internal directories.