ipld-eth-server/vendor/github.com/polydawn/refmt/json/jsonOptions.go
Elizabeth Engelman 36533f7c3f Update vendor directory and make necessary code changes
Fixes for new geth version
2019-09-25 16:32:27 -05:00

24 lines
713 B
Go

package json
type EncodeOptions struct {
// If set, this will be prefixed to every "line" to pretty-print.
// (Typically you want to just set this to `[]byte{'\n'}`!)
Line []byte
// If set, this will be prefixed $N$ times before each line's content to pretty-print.
// (Likely values are a tab, or a few spaces.)
Indent []byte
}
// marker method -- you may use this type to instruct `refmt.Marshal`
// what kind of encoder to use.
func (EncodeOptions) IsEncodeOptions() {}
type DecodeOptions struct {
// future: options to validate canonical serial order
}
// marker method -- you may use this type to instruct `refmt.Marshal`
// what kind of encoder to use.
func (DecodeOptions) IsDecodeOptions() {}