igcmap

package
v0.1.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Equalable

type Equalable interface {
	Equal(interface{}) bool
}

type IgcMap

type IgcMap struct {
	// contains filtered or unexported fields
}

func New

func New(orignal map[string]interface{}) *IgcMap

func (*IgcMap) Del

func (m *IgcMap) Del(key string)

Del 删除一个元素

func (*IgcMap) Equal

func (m *IgcMap) Equal(o *IgcMap) bool

Equal 判定两个对象是否相等

func (*IgcMap) Get

func (m *IgcMap) Get(key string) (val interface{}, ok bool)

Get 获取值

func (*IgcMap) Iter

func (m *IgcMap) Iter(callback func(key string, val interface{}) bool)

Iter 迭代每一个字段元素

func (*IgcMap) Keys

func (m *IgcMap) Keys() []string

Keys 获取所有的键

func (*IgcMap) MergeIgc

func (m *IgcMap) MergeIgc(other *IgcMap)

MergeIgc 合并MergeIgc

func (*IgcMap) MergeMap

func (m *IgcMap) MergeMap(other map[string]interface{})

MergeMap 合并Map

func (*IgcMap) Orignal

func (m *IgcMap) Orignal() map[string]interface{}

Orignal 返回Map 的浅拷贝副本

func (*IgcMap) Set

func (m *IgcMap) Set(key string, val interface{}) bool

Set 添加新值

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL