dictionary

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

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotFound    = DictError("could not find the key you were looking for")
	ErrKeyFound    = DictError("key already found in dictionary")
	ErrKeyNotFound = DictError("could not update key as already defined")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DictError

type DictError string

func (DictError) Error

func (e DictError) Error() string

type Dictionary

type Dictionary map[string]string

func (Dictionary) Add

func (dict Dictionary) Add(key, value string) error

func (Dictionary) Delete

func (dict Dictionary) Delete(key string)

func (Dictionary) Search

func (dict Dictionary) Search(word string) (string, error)

func (Dictionary) Update

func (dict Dictionary) Update(key, value string) error

Jump to

Keyboard shortcuts

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