Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyHandler ¶
type KeyHandler struct {
// contains filtered or unexported fields
}
This struct actually sets/gets/deletes a key from the database
func Open ¶
func Open(filename string) (*KeyHandler, error)
Opens a file to be used as a database. If the file doesn't exist, it'll create it and initialize it.
func (*KeyHandler) Close ¶
func (kh *KeyHandler) Close() error
Closes the file returned by Open, can be deferred that way
func (*KeyHandler) Del ¶
func (kh *KeyHandler) Del(key string) error
Deletes the key if it exists. (returns if it doesn't)
Click to show internal directories.
Click to hide internal directories.