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

Method Position

errors.go:82–84  ·  view source on GitHub ↗

Position returns the (line, column) pair indicating where the error occurred in the document. Positions are 1-indexed.

()

Source from the content-addressed store, hash-verified

80// Position returns the (line, column) pair indicating where the error
81// occurred in the document. Positions are 1-indexed.
82func (e *DecodeError) Position() (row int, column int) {
83 return e.line, e.column
84}
85
86// Key that was being processed when the error occurred.
87func (e *DecodeError) Key() Key {

Callers 9

TestDecodeError_PositionFunction · 0.95
ExampleDecodeErrorFunction · 0.95
mainMethod · 0.95
convertFunction · 0.95

Calls

no outgoing calls