bmap

package
v1.30.31 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BMap

type BMap map[string]interface{}

func NewBMap

func NewBMap() BMap

func ToBMap added in v1.30.31

func ToBMap(v interface{}) (values BMap)

ToBMap struct/slice... to BMap v must be allowed

func (BMap) Del

func (v BMap) Del(key string) BMap

Del deletes the values associated with key.

func (BMap) Get

func (v BMap) Get(key string) interface{}

Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

func (BMap) Marshal added in v1.30.31

func (v BMap) Marshal(value interface{}) error

Marshal BMap to v

func (BMap) Pop

func (v BMap) Pop(key string) interface{}

Pop return Get value and Del key

func (BMap) Set

func (v BMap) Set(key string, value interface{}) BMap

Set sets the key to value. It replaces any existing values.

Jump to

Keyboard shortcuts

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