Documentation ¶
Index ¶
- type Advisor
- func (advisor *Advisor) AddTerm(item string)
- func (advisor *Advisor) ClearTerms()
- func (advisor *Advisor) Errorf(typo string, format string, args ...interface{}) error
- func (advisor *Advisor) HasTerm(term string) bool
- func (advisor *Advisor) HasTerms() bool
- func (advisor *Advisor) Wrapf(originalError error, typo string, format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisor ¶
type Advisor struct {
// contains filtered or unexported fields
}
Advisor is a utility that helps augment errors with guidance when mistakes are made in configuration.
func NewAdvisor ¶
func NewAdvisor() *Advisor
func (*Advisor) ClearTerms ¶
func (advisor *Advisor) ClearTerms()
ClearTerms removes all the terms from ths advisor
func (*Advisor) Errorf ¶
Errorf creates a new error with advice, or a simple error if no advice possible
Click to show internal directories.
Click to hide internal directories.