https://github.com/caasmo/kv-repl-barebones
https://github.com/caasmo/kv-repl-barebones
barebones kv kv-store kvstore repl
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/caasmo/kv-repl-barebones
- Owner: caasmo
- License: mit
- Created: 2022-04-19T11:15:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-08T13:19:39.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T23:53:55.545Z (almost 2 years ago)
- Topics: barebones, kv, kv-store, kvstore, repl
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 ./...