parser

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(i interface{}, format string) ([]byte, error)

Parse parses the object into the desired format

func ToCSV added in v0.4.1

func ToCSV(i interface{}) ([]byte, error)

ToCSV parses the object to CSV.

func ToCheckPluginOutput

func ToCheckPluginOutput(i interface{}) ([]byte, error)

ToCheckPluginOutput parses the object to a check plugin format.

func ToHumanReadable

func ToHumanReadable(i interface{}) ([]byte, error)

ToHumanReadable parses the object to a human readable format.

func ToJSON

func ToJSON(i interface{}) ([]byte, error)

ToJSON parses the object to JSON.

func ToStruct

func ToStruct(contents []byte, format string, i interface{}) error

ToStruct parses the formatted content into the struct with the correct unmarshal method.

func ToXML

func ToXML(i interface{}) ([]byte, error)

ToXML parses the object to XML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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