Documentation ¶
Index ¶
- Constants
- Variables
- func DiffSlice[T comparable](one []T, other []T) ([]T, bool)
- func EqualsAny(a any, b any) bool
- func EqualsAnyList(a []any, b []any) bool
- func EqualsStringList(a []string, b []string) bool
- func HavePathInCommon(a *Map, b *Map) bool
- func InformationPaths(f *Map) []string
- func Intersection(one []string, other []string) []string
- func RefToLookup(ref *Map) []string
- func Union(one []string, other []string) []string
- type ComparableMap
- type Key
- type KeyValue
- type Map
- func (m *Map) Contains(key string) bool
- func (m *Map) Copy() *Map
- func (m *Map) Delete(key string) (*Map, bool)
- func (m *Map) Diff(other *Map) (*Map, error)
- func (m *Map) Equals(other *Map) bool
- func (m *Map) Error() string
- func (m *Map) Get(key any) (any, bool)
- func (m *Map) GetBool(key string) (bool, error)
- func (m *Map) GetFloat(key string) (float64, error)
- func (m *Map) GetInt(key string) (int, error)
- func (m *Map) GetMap(key string) (*Map, error)
- func (m *Map) GetString(key string) (string, error)
- func (m *Map) Keys() []string
- func (m *Map) MarshalJSON() ([]byte, error)
- func (m *Map) Merge(other *Map) *Map
- func (m *Map) Set(key string, value any) *Map
- func (m *Map) ToMap() map[string]any
- func (m *Map) UnmarshalJSON(d []byte) error
- type MapOption
- type MapOptions
Constants ¶
View Source
const ( BitPartitionSize = 6 PartitionMask = (1 << BitPartitionSize) - 1 )
View Source
const (
MaskLevel0 = (0b11111100 << 56)
)
Variables ¶
View Source
var ( ErrDeleteNotImplemented = fmt.Errorf("delete is not implemented") ErrKeyNotFound = fmt.Errorf("key not found") ErrWrongType = fmt.Errorf("wrong type") )
View Source
var DefaultMapOptions = MapOptions{ // contains filtered or unexported fields }
Functions ¶
func DiffSlice ¶
func DiffSlice[T comparable](one []T, other []T) ([]T, bool)
DiffSlice checks that the two slices are equal and returns a slice containing the other slice and whether the slices differ.
func EqualsAnyList ¶
func EqualsStringList ¶
func HavePathInCommon ¶
func InformationPaths ¶
InformationPaths returns a list of paths to all leaf nodes in a feature
func Intersection ¶
func RefToLookup ¶
Types ¶
type ComparableMap ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func NewFromItems ¶
func (*Map) MarshalJSON ¶
func (*Map) UnmarshalJSON ¶
type MapOptions ¶
type MapOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.