mapbuilder

package module
v0.0.0-...-6fb0cb6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

map-builder

GoDoc

Utility class used to build map[string]interface{} structures.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map map[string]interface{}

type MapBuilder

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

MapBuilder is used to build nested `map[string]interface{}` structures. To build a structure, separate key parts by a `.`.

func (*MapBuilder) Err

func (mb *MapBuilder) Err() error

Err returns all the errors that were found while modifying the map.

func (*MapBuilder) Get

func (mb *MapBuilder) Get(key string) interface{}

Get returns the data stored in the map at the given key.

func (*MapBuilder) Remove

func (mb *MapBuilder) Remove(key string) *MapBuilder

Remove overwrites data from the map at the given key.

func (*MapBuilder) Set

func (mb *MapBuilder) Set(key string, value interface{}) *MapBuilder

Set overwrites data into the map at the given key.

Jump to

Keyboard shortcuts

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