mapset

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyInput represents that the input into the operation is not complete
	ErrEmptyInput = errors.New("One or more inputs are empty")
)

Functions

This section is empty.

Types

type MapSet

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

MapSet is the map with each value being a set.

func Init

func Init() MapSet

Init returns an initialized NestedMap

func (*MapSet) Reserve

func (m *MapSet) Reserve(key string, value string) (result Result)

Reserve will put a space into the map for the value given that key. Will return false if there is already an entry.

type Result

type Result struct {
	Value   string
	Error   error
	Success bool
}

Result is the result from any NestedMap operations

Jump to

Keyboard shortcuts

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