Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrFilePos ¶
IsErrFilePos identifies whethere or not the root cause of the provided error is of the ErrFilePos type. Wrapped errors are unwrapped via the Cause() function.
Types ¶
type ErrFilePos ¶
ErrFilePos extends the error interface to add details on the file position where the error occurred.
func ToErrFilePos ¶
func ToErrFilePos(err error) ErrFilePos
ToErrFilePos converts the input error to an ErrFilePos if possible, or nil if not. If IsErrFilePos returns true, this will not return nil.
Click to show internal directories.
Click to hide internal directories.