jsonSyntaxErroLib

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug *bool

Debug if true will turn on extra debugging output

View Source
var HintList []HintType

HintList a set of possible, sometimes naive, hints on how to find/fix error

Functions

func CheckForTabs

func CheckForTabs(data []byte) bool

CheckForTabs returns true if data has tabs in it

func GenerateSyntaxError

func GenerateSyntaxError(js string, err error) (rv string)

GenerateSyntaxError converts from the offset error message into a human readable syntax error

func TabListing

func TabListing(data []byte) (rv string)

TabListing shows tabs as '\\t' instead of a whitepace

Types

type HintType

type HintType struct {
	Pattern string
	Note    string
	// contains filtered or unexported fields
}

HintType is a single hint on what might have cause the error

Jump to

Keyboard shortcuts

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