goadict

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goadict

type Goadict[K comparable, T comparable] map[K]T

Dictionary type

func (*Goadict[K, T]) Clear

func (d *Goadict[K, T]) Clear()

Clears the list

func (Goadict[K, T]) ContainsKey

func (d Goadict[K, T]) ContainsKey(keyToCheck K) bool

Returns true if dictionary contains key, else returns false

func (Goadict[K, T]) ContainsValue

func (d Goadict[K, T]) ContainsValue(valueToCheck T) bool

Check if dictionary contains value

func (Goadict[K, T]) Count

func (d Goadict[K, T]) Count() int

Returns number of keys inside dict

func (Goadict[K, T]) Keys

func (d Goadict[K, T]) Keys() goalist.Goalist[K]

Rerurns all keys from dictionary

func (Goadict[K, T]) Values

func (d Goadict[K, T]) Values() goalist.Goalist[T]

Rerutns all values from dictionary

Jump to

Keyboard shortcuts

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