jsonutils

package
v5.39.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumanizeJSONError added in v5.34.0

func HumanizeJSONError(err error, data []byte) error

HumanizeJSONError extracts error offsets and annotates the error with useful context

Types

type HumanizedJSONError added in v5.34.0

type HumanizedJSONError struct {
	Err       error
	Line      int
	Character int
}

func NewHumanizedJSONError added in v5.34.0

func NewHumanizedJSONError(err error, data []byte, offset int64) *HumanizedJSONError

func (*HumanizedJSONError) Error added in v5.34.0

func (e *HumanizedJSONError) Error() string

Jump to

Keyboard shortcuts

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