assert

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 8 Imported by: 14

README

assert

assert for go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxStack = 10000
View Source
var True = Bool

Functions

func Bool

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

func DirExists added in v0.0.8

func DirExists(path string) bool

func Err

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

func FileExists added in v0.0.8

func FileExists(path string) bool

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

func MustNotError

func MustNotError(err error)

func NotNil added in v0.0.11

func NotNil(err error)

func P

func P(d ...interface{})

func Type added in v0.1.3

func Type(err interface{})

Types

type KErr added in v0.0.13

type KErr struct {
	// contains filtered or unexported fields
}

func NewKErr added in v0.0.13

func NewKErr() *KErr

func (*KErr) AddStack added in v0.0.16

func (e *KErr) AddStack(stack string)

func (*KErr) Error added in v0.0.13

func (e *KErr) Error() string

func (*KErr) GetStacks added in v0.0.13

func (e *KErr) GetStacks() []string

func (*KErr) IsNil added in v0.0.17

func (e *KErr) IsNil() bool

func (*KErr) LogStacks added in v0.0.13

func (e *KErr) LogStacks()

func (*KErr) Panic added in v0.1.3

func (e *KErr) Panic()

func (*KErr) SetErr added in v0.0.16

func (e *KErr) SetErr(err error)

Jump to

Keyboard shortcuts

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