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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址