assert

package module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 4 Imported by: 14

README

assert

assert for go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bool = _a.Bool
View Source
var Err = _a.Err
View Source
var MustNotError = _a.MustNotError
View Source
var P = _a.P
View Source
var True = _a.Bool

Functions

func If added in v0.0.4

func If(b bool, t, f interface{}) interface{}

func IfEquals added in v0.0.4

func IfEquals(args ...interface{}) bool

func IfIn added in v0.0.4

func IfIn(a interface{}, args ...interface{}) bool

func IfNotIn added in v0.0.4

func IfNotIn(a interface{}, args ...interface{}) bool

Types

type Assert

type Assert struct {
}

func (*Assert) Bool

func (t *Assert) Bool(b bool, format string, args ...interface{})

func (*Assert) Err

func (t *Assert) Err(err error, format string, args ...interface{})

func (*Assert) MustNotError

func (t *Assert) MustNotError(err error)

func (*Assert) P

func (t *Assert) P(d ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL