github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xorderedmap/README.md (about) 1 # xorderedmap 2 3 ## Dependencies 4 5 + xreflect 6 + (xtesting) 7 8 ## Documents 9 10 ### Types 11 12 + `type OrderedMap struct` 13 14 ### Variables 15 16 + `var CreateYamlMapSliceFunc func` 17 18 ### Constants 19 20 + None 21 22 ### Functions 23 24 + `func New() *OrderedMap` 25 + `func NewWithCap(c int) *OrderedMap` 26 + `func FromInterface(object interface{}) *OrderedMap` 27 28 ### Methods 29 30 + `func (l *OrderedMap) Keys() []string` 31 + `func (l *OrderedMap) Values() []interface{}` 32 + `func (l *OrderedMap) Len() int` 33 + `func (l *OrderedMap) Set(key string, value interface{})` 34 + `func (l *OrderedMap) Has(key string) bool` 35 + `func (l *OrderedMap) Get(key string) (interface{}, bool)` 36 + `func (l *OrderedMap) GetOr(key string, defaultValue interface{}) interface{}` 37 + `func (l *OrderedMap) MustGet(key string) interface{}` 38 + `func (l *OrderedMap) Remove(key string) (interface{}, bool)` 39 + `func (l *OrderedMap) Clear()` 40 + `func (l *OrderedMap) MarshalJSON() ([]byte, error)` 41 + `func (l *OrderedMap) MarshalYAML() (interface{}, error)` 42 + `func (l *OrderedMap) String() string`