yaml

package
v0.0.0-...-5d6a5f9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(msg interface{}) (interface{}, error)

From converts the json message to a map string interface

func To

func To(msg interface{}) (interface{}, error)

To converts the message to a yaml message

Types

type Message

type Message struct {
	M interface{}
	B []byte
}

Message wraps a message with the YAML of the message.

func (*Message) In

func (y *Message) In() interface{}

In returns the message wrapped in the yaml message.

func (*Message) String

func (y *Message) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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