helps

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 6 Imported by: 0

README

helps

-- import "github.com/mdwhatcott/helps"

Usage

func DumpFMT
func DumpFMT(v interface{}) string
func DumpJSON
func DumpJSON(v interface{}) string
func DumpJSONSafe
func DumpJSONSafe(v interface{}) (string, error)
func DumpXML
func DumpXML(v interface{}) string
func DumpXMLSafe
func DumpXMLSafe(v interface{}) (string, error)
func FormatJSON
func FormatJSON(data []byte) string
func FormatJSONSafe
func FormatJSONSafe(data []byte) (string, error)
func FormatXML
func FormatXML(data []byte) string
func FormatXMLSafe
func FormatXMLSafe(data []byte) (string, error)

https://stackoverflow.com/a/27141132/605022

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpFMT

func DumpFMT(v interface{}) string

func DumpJSON

func DumpJSON(v interface{}) string

func DumpJSONSafe

func DumpJSONSafe(v interface{}) (string, error)

func DumpXML

func DumpXML(v interface{}) string

func DumpXMLSafe

func DumpXMLSafe(v interface{}) (string, error)

func FormatJSON

func FormatJSON(data []byte) string

func FormatJSONSafe

func FormatJSONSafe(data []byte) (string, error)

func FormatXML

func FormatXML(data []byte) string

func FormatXMLSafe

func FormatXMLSafe(data []byte) (string, error)

Types

type XMLFormatter

type XMLFormatter struct {
	// contains filtered or unexported fields
}

func NewXMLFormatter

func NewXMLFormatter(data []byte) *XMLFormatter

func (*XMLFormatter) Format

func (this *XMLFormatter) Format() (string, error)

https://stackoverflow.com/a/27141132/605022

Directories

Path Synopsis
cmd
hex
json
Command json performs similar functionality to: alias json='python -m json.tool' Unlike python 2, this script handles unicode nicely.
Command json performs similar functionality to: alias json='python -m json.tool' Unlike python 2, this script handles unicode nicely.
md5
xml
Command XML indents XML from stdin to stdout In general, it adheres to the UNIX philosophy: Simply pipe unformatted XML data to the command and formatted XML comes out.
Command XML indents XML from stdin to stdout In general, it adheres to the UNIX philosophy: Simply pipe unformatted XML data to the command and formatted XML comes out.

Jump to

Keyboard shortcuts

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