kvstore

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is key-value store!

func New

func New(db map[string]string) Store

New returns new Store instance.

func (*Store) Get

func (s *Store) Get(k string) (string, error)

Get accepts key, returns value and error.

func (*Store) Set

func (s *Store) Set(k, v string) error

Set new key to store.

Jump to

Keyboard shortcuts

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