scratch

package
v0.0.0-...-8ffb5d3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scratch

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

func New

func New() *Scratch

func (*Scratch) Append

func (d *Scratch) Append(key string, value interface{}) (string, error)

Append appends the value to the slice for key. The function fails if the current value for key is not a slice of interface{}.

func (*Scratch) Delete

func (d *Scratch) Delete(key string) string

Delete deletes the value for key.

func (*Scratch) Get

func (d *Scratch) Get(key string) interface{}

Get gets the value for a key. Get returns nil if the there is no value for the key.

func (*Scratch) Has

func (d *Scratch) Has(key string) bool

Has returns whether there is a value for key.

func (*Scratch) Set

func (d *Scratch) Set(key string, value interface{}) string

Set sets the value for a key.

Jump to

Keyboard shortcuts

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