Categorygithub.com/pawelWritesCode/df
modulepackage
1.0.0
Repository: https://github.com/pawelwritescode/df.git
Documentation: pkg.go.dev

# README

Go Reference

Dataformat

Package contains constants that names few commonly used data formats, like

  • JSON
  • XML
  • YAML

and functions to check whether input data with some significant probability matches given format.

Warning

Functions from that package should not be used in production code.

# Functions

IsHTML checks whether bytes are in HTML format.
IsJSON checks whether bytes are in JSON format.
IsPlainText checks whether bytes are in plain text format.
IsXML checks whether bytes are in XML format.
IsYAML checks whether bytes are in YAML format.

# Constants

HTML describes HTML data format.
JSON describes JSON data format.
PlainText describes plan text data format.
XML describes XML data format.
YAML describes Yaml data format.

# Type aliases

DataFormat describes format of data.