storage

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileVocabRepo

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

FileVocabRepo lets you fetch or save a vocab list

func NewDefaultVocabRepo

func NewDefaultVocabRepo() (FileVocabRepo, error)

func (FileVocabRepo) Load

func (r FileVocabRepo) Load() (vocab.List, error)

Load a vocab list from storage

func (FileVocabRepo) Save

func (r FileVocabRepo) Save(vl vocab.List) error

Save a vocab list to storage

Jump to

Keyboard shortcuts

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