Vendor easyjson code to fix build

To ensure we can build without easyjson installed, vendor the
easyjson repository as the generated files use the easyjson
library.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #1322
Approved by: mheon
This commit is contained in:
Matthew Heon
2018-08-22 10:59:53 -04:00
committed by Atomic Bot
parent 714dbbda9e
commit 20a625ba77
11 changed files with 2357 additions and 0 deletions

15
vendor/github.com/mailru/easyjson/jlexer/error.go generated vendored Normal file
View File

@@ -0,0 +1,15 @@
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)
}