mlist

package
v0.0.0-...-a4757fd Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

type MapList

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

func NewMapList

func NewMapList() *MapList

func (*MapList) Del

func (l *MapList) Del(key string)

Del delete the key in the list

func (*MapList) Exec

func (l *MapList) Exec(exec func(string, interface{}))

Exec go through the list

func (*MapList) ExecBreak

func (l *MapList) ExecBreak(exec func(string, interface{}) bool) bool

Exec go through the list

func (*MapList) Get

func (l *MapList) Get(key string) (interface{}, bool)

Get get the key in the list

func (*MapList) Has

func (l *MapList) Has(key string) bool

Has check whether the key is in the list

func (*MapList) Init

func (l *MapList) Init()

func (*MapList) Len

func (l *MapList) Len() int

func (*MapList) Reset

func (l *MapList) Reset()

func (*MapList) Set

func (l *MapList) Set(key string, value interface{})

Set if the key can't find in the list then insert the value into the end of the list, or modify the value of the key

Jump to

Keyboard shortcuts

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