package
1.5.0
Repository: https://github.com/m3db/m3.git
Documentation: pkg.go.dev

# Functions

func TestMyTypeRoundtrips(t *testing.T) { type MyType struct{} testmarshal.AssertMarshalingRoundtrips(t, testmarshal.JSONMarshaler, MyType{}) }.
AssertMarshals checks that the given value marshals into data equal to expectedData.
No description provided by the author
Require wraps an Assert call and turns it into a require.* call (fails if the assert fails).
TestMarshalersRoundtrip is a helper which runs a test for each provided marshaller on each example in examples (a slice of any type).

# Variables

JSONMarshaler uses the encoding/json package to marshal types.
TextMarshaler marshals types which implement both encoding.TextMarshaler and encoding.TextUnmarshaler.
YAMLMarshaler uses the gopkg.in/yaml.v2 package to marshal types.

# Interfaces

Marshaler represents a serialization protocol, e.g.