keyvalue

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 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 KVMap

type KVMap map[string]string

Map representing key=value pairs.

func (KVMap) Detele

func (m KVMap) Detele(key string)

Deletes a key=value pair from the map.

func (KVMap) Get

func (m KVMap) Get(key string) string

Fetches the value for a specific key from the map.

func (*KVMap) Marshal

func (m *KVMap) Marshal() ([]byte, error)

Returns JSON Marshalled map.

func (KVMap) Set

func (m KVMap) Set(key, value string)

Sets a key=value pair to the map.

func (KVMap) String

func (m KVMap) String(key string) string

Returns string representation in the form of "key=value"

func (*KVMap) UnmarshalIn

func (m *KVMap) UnmarshalIn(i interface{}) error

Unmarshalls the json in provided interface.

Jump to

Keyboard shortcuts

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