Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnableToMarshal = errors.New("unable to marshal message")
View Source
var ErrUnableToUnmarshal = errors.New("unable to unmarshal message")
View Source
var Marshallers = map[string]Marshaller{}
Functions ¶
func Register ¶
func Register(key string, 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 string) (marshaller Marshaller, ok bool)
Click to show internal directories.
Click to hide internal directories.