data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 0 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data map[string]interface{}

Data is an alias for a map so we can add functions unique to transporter.

func (Data) AsMap

func (d Data) AsMap() map[string]interface{}

AsMap converts the underlying Data d to a map[string]interface{}.

func (Data) Delete

func (d Data) Delete(key string)

Delete removes the data from the map based on the provided key.

func (Data) Get

func (d Data) Get(key string) interface{}

Get returns the value associated with the provided key.

func (Data) Has

func (d Data) Has(key string) (interface{}, bool)

Has returns to two value from of the key lookup on a map.

func (Data) Set

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

Set will sets the value based on the key.

Jump to

Keyboard shortcuts

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