Documentation
¶
Overview ¶
package typeassert provides helper functions type asserting structures.
Index ¶
- type Asserter
- func (a *Asserter) Bool() bool
- func (a *Asserter) Err() error
- func (a *Asserter) Float64() float64
- func (a *Asserter) I(index string) *Asserter
- func (a *Asserter) Int() int
- func (a *Asserter) Int64() int64
- func (a *Asserter) N(index int) *Asserter
- func (a *Asserter) String() string
- func (a *Asserter) V() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asserter ¶
type Asserter struct {
// contains filtered or unexported fields
}
Asserter helps type assertions with an "all-or-nothing" style API.
func (*Asserter) Err ¶
Err returns an error if any of the assertions failed. If the error is not nil, none of the assertions are valid.
Click to show internal directories.
Click to hide internal directories.