format

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJSON

func IsJSON(bytes []byte) bool

IsJSON checks whether bytes are in JSON format.

func IsXML added in v0.13.0

func IsXML(bytes []byte) bool

IsXML checks whether bytes are in XML format.

func IsYAML

func IsYAML(bytes []byte) bool

IsYAML checks whether bytes are in YAML format.

Types

type DataFormat

type DataFormat string

DataFormat describes format of data.

const (
	// JSON describes JSON data format.
	JSON DataFormat = "JSON"

	// YAML describes Yaml data format.
	YAML DataFormat = "YAML"

	// XML describes XML data format.
	XML DataFormat = "XML"

	// PlainText describes plan text data format.
	PlainText DataFormat = "plain text"
)

Jump to

Keyboard shortcuts

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