jsonutils

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumanizeJSONError

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

HumanizeJSONError extracts error offsets and annotates the error with useful context

Types

type HumanizedJSONError

type HumanizedJSONError struct {
	Err       error
	Line      int
	Character int
}

func NewHumanizedJSONError

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

func (*HumanizedJSONError) Error

func (e *HumanizedJSONError) Error() string

Jump to

Keyboard shortcuts

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