collection

package module
v0.0.0-...-7669540 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayItem

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

ArrayItem is item of ArrayList

type ArrayList

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

ArrayList is link list model container of ArrayItem

func ArrayListFactory

func ArrayListFactory() *ArrayList

ArrayListFactory is global function create a new ArrayList object

func ArrayListNew

func ArrayListNew() *ArrayList

ArrayListNew is global function create a new ArrayList object

func (*ArrayList) Add

func (me *ArrayList) Add(data interface{}) *ArrayList

Add is same Append function

func (*ArrayList) Append

func (me *ArrayList) Append(data interface{}) *ArrayList

Append is add item to last of ArrayList

func (*ArrayList) Begin

func (me *ArrayList) Begin()

Begin is reset loop befor use Next function

func (*ArrayList) Clean

func (me *ArrayList) Clean() *ArrayList

Clean is same Clear function

func (*ArrayList) Clear

func (me *ArrayList) Clear() *ArrayList

Clear is remove all of ArrayList

func (*ArrayList) Delete

func (me *ArrayList) Delete(index int) *ArrayList

Delete is same Remove function

func (*ArrayList) Factory

func (me *ArrayList) Factory() *ArrayList

Factory is create new ArrayList object

func (*ArrayList) Fetch

func (me *ArrayList) Fetch() (index int, node *ArrayItem)

Fetch is Get data item from pointer current in ArrayList

func (*ArrayList) Get

func (me *ArrayList) Get(index int) interface{}

Get is get data from index

func (*ArrayList) GetType

func (me *ArrayList) GetType(index int) string

GetType is check data type of ArrayList from index

func (*ArrayList) Length

func (me *ArrayList) Length() int

Length is size or length or count all of ArrayList

func (*ArrayList) New

func (me *ArrayList) New() *ArrayList

New is create new ArrayList object

func (*ArrayList) Next

func (me *ArrayList) Next() bool

Next is check has item in ArrayList and move pointer to next item

func (*ArrayList) Pop

func (me *ArrayList) Pop() interface{}

Pop is fetch and return last item of ArrayList and remove it

func (*ArrayList) Prepend

func (me *ArrayList) Prepend(data interface{}) *ArrayList

Prepend is add item to first of ArrayList

func (*ArrayList) Put

func (me *ArrayList) Put(data interface{}) *ArrayList

Put is same Append function

func (*ArrayList) Remove

func (me *ArrayList) Remove(index int) *ArrayList

Remove is delete item of ArrayList from index

func (*ArrayList) Shift

func (me *ArrayList) Shift() interface{}

Shift is fetch and return first item of ArrayList and remove it

func (*ArrayList) Size

func (me *ArrayList) Size() int

Size is same Length function

func (*ArrayList) ToArray

func (me *ArrayList) ToArray() []interface{}

ToArray is convert ArrayList to array

func (*ArrayList) ToString

func (me *ArrayList) ToString() (string, error)

ToString is convert ArrayList to string

func (*ArrayList) Unshift

func (me *ArrayList) Unshift(data interface{}) *ArrayList

Unshift is same Prepend function

type KeySet

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

KeySet is map key string

func KeySetFactory

func KeySetFactory() *KeySet

KeySetFactory is global function create a new KeySet object

func KeySetNew

func KeySetNew() *KeySet

KeySetNew is global function create a new KeySet object

func (*KeySet) Add

func (me *KeySet) Add(key string) *KeySet

Add is add key item to KeySet

func (*KeySet) Check

func (me *KeySet) Check(key string) bool

Check is same Contains function

func (*KeySet) Clean

func (me *KeySet) Clean() *KeySet

Clean is same Clear function

func (*KeySet) Clear

func (me *KeySet) Clear() *KeySet

Clear is remove all item in KeySet

func (*KeySet) Contains

func (me *KeySet) Contains(key string) bool

Contains is check key item has in KeySet

func (*KeySet) Delete

func (me *KeySet) Delete(key string) *KeySet

Delete is same Remove function

func (*KeySet) Factory

func (me *KeySet) Factory() *KeySet

Factory is create a new KeySet

func (*KeySet) GetData

func (me *KeySet) GetData() map[string]bool

GetData is get data map in KeySet

func (*KeySet) Has

func (me *KeySet) Has(key string) bool

Has is same Contains function

func (*KeySet) Length

func (me *KeySet) Length() int

Length is Get size or length or count of Item in KeySet

func (*KeySet) New

func (me *KeySet) New() *KeySet

New is create a new KeySet

func (*KeySet) Put

func (me *KeySet) Put(key string) *KeySet

Put is same Add function

func (*KeySet) Remove

func (me *KeySet) Remove(key string) *KeySet

Remove is delete key item in KeySet

func (*KeySet) SetData

func (me *KeySet) SetData(data map[string]bool) *KeySet

SetData is set data map in KeySet

func (*KeySet) Size

func (me *KeySet) Size() int

Size is same Length

func (*KeySet) ToArray

func (me *KeySet) ToArray() []string

ToArray is convert KeySet to array string

func (*KeySet) ToString

func (me *KeySet) ToString() (string, error)

ToString is convert KeySet to String

type MapKey

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

MapKey is data mapping Key - Value

func MapKeyFactory

func MapKeyFactory() *MapKey

MapKeyFactory is global function create a new MapKey object

func MapKeyNew

func MapKeyNew() *MapKey

MapKeyNew is global function create a new MapKey object

func (*MapKey) CheckKey

func (me *MapKey) CheckKey(key string) bool

CheckKey is same ContainsKey function

func (*MapKey) Clean

func (me *MapKey) Clean() *MapKey

Clean is same Clear function

func (*MapKey) Clear

func (me *MapKey) Clear() *MapKey

Clear is delete all item in MapKay

func (*MapKey) ContainsKey

func (me *MapKey) ContainsKey(key string) bool

ContainsKey is check key has in MapKey object

func (*MapKey) Delete

func (me *MapKey) Delete(key string) *MapKey

Delete is same Remove function

func (*MapKey) Factory

func (me *MapKey) Factory() *MapKey

Factory is create a new MapKey object

func (*MapKey) Get

func (me *MapKey) Get(key string) interface{}

Get is get data from key in MapKey object

func (*MapKey) GetData

func (me *MapKey) GetData() map[string]interface{}

GetData is get data in KeyMap object

func (*MapKey) GetKeys

func (me *MapKey) GetKeys() []string

GetKeys is get all keys in MapKey object

func (*MapKey) GetType

func (me *MapKey) GetType(key string) string

GetType is get data type in MapKey object from keyname

func (*MapKey) HasKey

func (me *MapKey) HasKey(key string) bool

HasKey is same ContainsKey function

func (*MapKey) Length

func (me *MapKey) Length() int

Length is size or length or count item of MapKey

func (*MapKey) New

func (me *MapKey) New() *MapKey

New is create a new MapKey object

func (*MapKey) Put

func (me *MapKey) Put(key string, value interface{}) *MapKey

Put is add new Key - Value to MapKey object

func (*MapKey) Remove

func (me *MapKey) Remove(key string) *MapKey

Remove is delete item in MapKey from keyname

func (*MapKey) SetData

func (me *MapKey) SetData(data map[string]interface{}) *MapKey

SetData is set data in KeyMap object

func (*MapKey) Size

func (me *MapKey) Size() int

Size is same Length

func (*MapKey) ToMap

func (me *MapKey) ToMap() map[string]interface{}

ToMap is convert MapKey to data map

func (*MapKey) ToString

func (me *MapKey) ToString() (string, error)

ToString is convert MapKey object to string

Jump to

Keyboard shortcuts

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