igcmap

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 9 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) Scan added in v0.1.35

func (t *IgcMap) Scan(v interface{}) error

func (*IgcMap) Set

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

Set 添加新值

func (IgcMap) String added in v0.1.35

func (d IgcMap) String() string

func (IgcMap) Value added in v0.1.35

func (d IgcMap) Value() (driver.Value, error)

Value String

Jump to

Keyboard shortcuts

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