// Convert recursively converts the input object into a MSGP representation.
//
// Strings are converted using the following heuristic:
//
// - if the string is not valid utf-8, it is passed through as a byte array without modification.
// - if the string is a valid ndau address, it's represented as a string.
// - if the string is valid padded base64 in the standard encoding, it is decoded and represented in the MSGP as a byte array.
// - otherwise, it is assumed to be a string, and represented as a string.
//
// This is primarily intended to assist conversion from JSON to MSGP, so certain
// conversions such as structs are intentionally excluded. If you have a struct,
// use `msgp.Marshal` directly.
Convert recursively converts the input object into a MSGP representation.

Strings are converted using the following heuristic.

- if the string is not valid utf-8, it is passed through as a byte array without modification.
- if the string is a valid ndau address, it's represented as a string.
- if the string is valid padded base64 in the standard encoding, it is decoded and represented in the MSGP as a byte array.
- otherwise, it is assumed to be a string, and represented as a string.

This is primarily intended to assist conversion from JSON to MSGP, so certain
conversions such as structs are intentionally excluded. If you have a struct,
use `msgp.Marshal` directly.
// Convert recursively converts the input object into a MSGP representation . // // Strings are converted using the following heuristic : // // - if the string is not valid utf - 8 it is passed through as a byte array without modification . // - if the string is a valid ndau address it ' s represented as a string . // - if the string is valid padded base64 in the standard encoding it is decoded and represented in the MSGP as a byte array . // - otherwise it is assumed to be a string and represented as a string . // // This is primarily intended to assist conversion from JSON to MSGP so certain // conversions such as structs are intentionally excluded . If you have a struct // use ` msgp . Marshal ` directly .
func Convert(in interface{}, typeHints map[string][]string) ([]byte, error) {
	buffer := make([]byte, 0)
	c := Converter{typeHints: typeHints}
	return c.convert(in, buffer)
}
func Convert ( in interface { } , typeHints map [ string ] [ ] string ) ( [ ] byte , error ) { buffer := make ( [ ] byte , 0 ) c := Converter { typeHints : typeHints } return c . convert ( in , buffer ) }
Convert recursively converts the input object into a MSGP representation.
Convert recursively converts the input object into a MSGP representation .