db

package
v0.0.0-...-6c03031 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT, 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 DB

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

The key-value database.

func New

func New() *DB

Creates a new database.

func (*DB) Get

func (db *DB) Get(key string) string

Retrieves the value for a given key.

func (*DB) Put

func (db *DB) Put(key string, value string)

Sets the value for a given key.

Jump to

Keyboard shortcuts

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