0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-26 08:48:50 +00:00
crazy-max_diun/vendor/github.com/alecthomas/kong/error.go
2024-12-14 22:30:21 +01:00

12 lines
293 B
Go

package kong
// ParseError is the error type returned by Kong.Parse().
//
// It contains the parse Context that triggered the error.
type ParseError struct {
error
Context *Context
}
// Unwrap returns the original cause of the error.
func (p *ParseError) Unwrap() error { return p.error }