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 modules, 28 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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