data

package
v19.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clonable

type Clonable interface {
	// Clone allows to duplicate Clonable
	Clone() Clonable
	// Replace allows to replace a Clonable with data from another one
	Replace(Clonable) Clonable
}

Clonable is the interface a struct must satisfy to be able to be cloned

type Identifyable

type Identifyable interface {
	GetName() string
	GetID() string
}

Identifyable ...

type Map

type Map map[string]interface{}

Map ...

func NewMap

func NewMap() Map

NewMap ...

func (Map) Clone

func (m Map) Clone() Map

Clone clones the content of a Variables satisfies interface Clonable

func (Map) Contains

func (m Map) Contains(key string) bool

Contains tells if a key is present in Map

func (Map) ForceMerge

func (m Map) ForceMerge(src Map) Map

ForceMerge add missing keys from source in p and replace the ones in source already in p

func (Map) Merge

func (m Map) Merge(src Map) Map

Merge add missing keys from source

func (Map) Replace

func (m Map) Replace(src Map) Map

Replace replaces the content of the Map with content of another one satisfies interface Clonable

type Serializable

type Serializable interface {
	Serialize() ([]byte, error)
	Deserialize([]byte) error
}

Serializable is the interface allowing the conversion of satisfying struct to []byte (Serialize()) and reverse operation (Unserialize())

Jump to

Keyboard shortcuts

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