gokv

package
v0.0.0-...-9d95335 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 0 Imported by: 0

README

gokv

key-value abstract for go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// All list the keys in the store.
	All() (map[string]string, error)
	// Set stores the given value for the given key.
	Set(k, v string) error
	// Get retrieves the value for the given key.
	Get(k string) (v string, err error)
	// Del deletes the stored value for the given key.
	// Deleting a non-existing key-value pair does NOT lead to an error.
	Del(k string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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