README ¶ kvrepl A simple command line REPL (read-eval-print loop) that drives a simple in-memory key/value storage system. This system should also allow for nested transactions. A transaction can then be committed or aborted. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Parse(s string, d *DB) (string, error) type DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Parse ¶ func Parse(s string, d *DB) (string, error) Parse decides what commands to run and returns a string containing the value of a read or an error if one occurred. Types ¶ type DB ¶ type DB struct { KV1 map[string]string KV2 map[string]string PKV bool // contains filtered or unexported fields } DB is struct defining two maps, pkv (points to kv) and nest, which aids figuring out how nested the commits are for current transaction Source Files ¶ View all Source files db.go parse.go Directories ¶ Show internal Expand all Path Synopsis cmd kvrepl Click to show internal directories. Click to hide internal directories.