package
Version:
v0.0.0-...-5d6a5f9
Opens a new window with list of versions in this module.
Published: Mar 23, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func From(msg interface{}) (interface{}, error)
From converts the json message to a map string interface
func To(msg interface{}) (interface{}, error)
To converts the message to a yaml message
type Message struct {
M interface{}
B []byte
}
Message wraps a message with the YAML of the message.
In returns the message wrapped in the yaml message.
String implements the fmt.Stringer interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.