pairs

package
v0.0.0-...-c130b31 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonPair

type JsonPair struct {
	K string `json:"key" cql:"key"`
	V string `json:"value" cql:"value"`
}

func NewJsonPair

func NewJsonPair(k string, v string) *JsonPair

type JsonPairs

type JsonPairs []*JsonPair

func ArrayToJsonPairs

func ArrayToJsonPairs(m []string) *JsonPairs

Delete old keys and update them with the new values

func (*JsonPairs) Match

func (p *JsonPairs) Match(k string) string

match for a key in the JSONPair and send the value

func (*JsonPairs) NukeAndSet

func (p *JsonPairs) NukeAndSet(m map[string][]string)

Delete old keys and update them with the new values

func (*JsonPairs) NukeKeys

func (p *JsonPairs) NukeKeys(m string)

Delete old key and its value

func (*JsonPairs) ToMap

func (p *JsonPairs) ToMap() map[string]string

func (*JsonPairs) ToString

func (p *JsonPairs) ToString() []string

Jump to

Keyboard shortcuts

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