kv-repl-barebones

module
v0.0.0-...-be88cca Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT

README

kv-repl-barebones

kv-repl-barebones is a simple exercise to show a barebones Read-Eval-Print Loop, or REPL, for managing a basic key-value store.

Run

go run cmd/main.go
> read k
Key not found: k
> begin
> write k 42
> read k
42
> commit
> read k
42
> begin
> remove k
> read k
Key not found: k
> discard
> read k
42
> exit

Test

go test -v -coverprofile=c.out ./...

Directories

Path Synopsis
Package repl implements a simple repl (Read-Eval-Print Loop) for access to a Key Value Storage system.
Package repl implements a simple repl (Read-Eval-Print Loop) for access to a Key Value Storage system.
Package storage implements a simple Key Value Storage system with nested transaction capabilities.
Package storage implements a simple Key Value Storage system with nested transaction capabilities.

Jump to

Keyboard shortcuts

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