v2

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteNotExistsError = errors.New("delete not exists word error")
View Source
var DuplicateWordError = errors.New("duplicate word error")
View Source
var NotFoundError = errors.New("word not found")
View Source
var UpdateNotExitsError = errors.New("update not exists word error")

Functions

This section is empty.

Types

type Dictionary

type Dictionary map[string]string

func (Dictionary) Add

func (d Dictionary) Add(word, value string) error

func (Dictionary) Delete

func (d Dictionary) Delete(word string) error

func (Dictionary) Search

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

func (Dictionary) Update

func (d Dictionary) Update(word, value string) error

Jump to

Keyboard shortcuts

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