yson2json

package
v0.0.0-...-5019c65 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawMessage

type RawMessage struct {
	JSON json.RawMessage

	// UseInt64 controls conversion of JSON numbers.
	//
	// When UseInt64 is set to true, json numbers that can be represented as int64
	// are converted to int64 in yson.
	UseInt64 bool

	// UseUint64 controls conversion of JSON numbers.
	//
	// When UseUint64 is set to true, json numbers that can be represented as uint64
	// are converted to uint64 in yson.
	//
	// When both UseInt64 and UseUint64 are set to true, conversion to int64 tried first.
	UseUint64 bool
}

RawMessage is type that wraps raw JSON message and marshals it directly to YSON using streaming API

func (RawMessage) MarshalYSON

func (m RawMessage) MarshalYSON(w *yson.Writer) error

func (*RawMessage) UnmarshalYSON

func (m *RawMessage) UnmarshalYSON(r *yson.Reader) error

Jump to

Keyboard shortcuts

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