MCPcopy
hub / github.com/pelletier/go-toml / NewParserError

Function NewParserError

unstable/parser.go:30–35  ·  view source on GitHub ↗

NewParserError is a convenience function to create a ParserError Warning: Highlight needs to be a subslice of Parser.data, so only slices returned by Parser.Raw are valid candidates.

(highlight []byte, format string, args ...interface{})

Source from the content-addressed store, hash-verified

28// Warning: Highlight needs to be a subslice of Parser.data, so only slices
29// returned by Parser.Raw are valid candidates.
30func NewParserError(highlight []byte, format string, args ...interface{}) error {
31 return &ParserError{
32 Highlight: highlight,
33 Message: fmt.Errorf(format, args...).Error(),
34 }
35}
36
37// Parser scans over a TOML-encoded document and generates an iterative AST.
38//

Callers 15

fusedDocumentMethod · 0.92
fusedTableMethod · 0.92
fusedKeyValMethod · 0.92
fusedScalarMethod · 0.92
fusedConsumeEOLFunction · 0.92
UnmarshalTextMethod · 0.92
UnmarshalTextMethod · 0.92
handleRootExpressionMethod · 0.92
walkTableMethod · 0.92
descendMethod · 0.92
assignValueMethod · 0.92
assignStringMethod · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…