base

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshallers = map[models.Serialization]Marshaller{}

Functions

func Register

func Register(key models.Serialization, marshaller Marshaller)

Types

type Marshaller

type Marshaller interface {
	Marshal(in interface{}, variable model.ContentVariable) (out string, err error)
	Unmarshal(in string, variable model.ContentVariable) (out interface{}, err error)
}

func Get

func Get(key models.Serialization) (marshaller Marshaller, ok bool)

Jump to

Keyboard shortcuts

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