metadata

package
v0.0.0-...-52d9df3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataToMap

func MetadataToMap(meta Metadata) map[string]interface{}

Types

type Metadata

type Metadata map[string]interface{}

func FromMetadata

func FromMetadata(m Metadata) Metadata

func MapToMetadata

func MapToMetadata(data map[string]interface{}) Metadata

func (Metadata) ExistsKey

func (m Metadata) ExistsKey(key string) bool

func (Metadata) Get

func (m Metadata) Get(key string) interface{}

func (Metadata) GetString

func (m Metadata) GetString(key string) string

func (Metadata) GetTime

func (m Metadata) GetTime(key string) time.Time

func (Metadata) Keys

func (m Metadata) Keys() []string

func (Metadata) Set

func (m Metadata) Set(key string, value interface{})

func (Metadata) ToJson

func (m Metadata) ToJson() string

Jump to

Keyboard shortcuts

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