jsondoc

package
v0.0.0-...-7149754 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc []byte

Doc represents a JSON encoded data.

func ToDocs

func ToDocs(data [][]byte) []Doc

ToDocs converts a list of JSON encoded data to docs.

func (Doc) MarshalYAML

func (d Doc) MarshalYAML() ([]byte, error)

MarshalYAML converts Doc to a YAML encoded data during YAML marshaling.

func (Doc) Pretty

func (d Doc) Pretty() (string, error)

Pretty converts a Doc to a human readable string.

Jump to

Keyboard shortcuts

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