vocab

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Words []string
}

List is vocab list, containing words

func (*List) AddWord

func (vl *List) AddWord(w string) error

AddWord adds a word to the vocab list. Duplicates are not permitted, and capitalization is ignored

func (*List) RemoveWord

func (vl *List) RemoveWord(w string) error

RemoveWord removes a word from the vocab list. Capitalization is ignored

func (*List) WordExists

func (vl *List) WordExists(w string) bool

WordExists checks if a word exists in the vocab list

Jump to

Keyboard shortcuts

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