diff options
author | Özgür Kesim <oec@codeblau.de> | 2019-06-18 13:14:22 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2019-06-18 13:14:22 +0200 |
commit | b9b0f69ccfe6fa9ef21a9323a77f1c65220d944d (patch) | |
tree | 8c61307402511fbe728e962c4819438130b2f25e /errors.go | |
parent | 16cf31e9e91aef73061c24d644b3c093d7437b71 (diff) |
expose Remaining in UnparsedInputError
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,10 +17,10 @@ func (e *Error) Error() string { return fmt.Sprintf("offset %d: expected %s", e. // UnparsedInputError is returned by Run when not all of the input was consumed. There may still be a valid result type UnparsedInputError struct { - remaining string + Remaining string } // Error satisfies the golang error interface func (e UnparsedInputError) Error() string { - return "left unparsed: " + e.remaining + return "left unparsed: " + e.Remaining } |