mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 21:31:18 +01:00
The kubernetes project has been updated to use Go 1.14.4. See below pull request. https://github.com/kubernetes/kubernetes/pull/88638 After making the updates to Go 1.14 "make gen" no longer worked. The file hack/tools.go had to be created to get "make gen" working with Go 1.14.
16 lines
365 B
Go
Vendored
16 lines
365 B
Go
Vendored
package jlexer
|
|
|
|
import "fmt"
|
|
|
|
// LexerError implements the error interface and represents all possible errors that can be
|
|
// generated during parsing the JSON data.
|
|
type LexerError struct {
|
|
Reason string
|
|
Offset int
|
|
Data string
|
|
}
|
|
|
|
func (l *LexerError) Error() string {
|
|
return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data)
|
|
}
|