Go 1.13: Xerrors
Part of the Go 2 series of language changes is a new error inspection proposal. So I followed a common strategy in Go of introducing an error type into the taildb package:
This works well! To check the returned error from we can write:
The new xerrors is due to be promoted into the standard library’s errors package in Go 1.13.
Source: crawshaw.io