assert

package module
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 9 Imported by: 14

README

assert

assert for go

Documentation

Index

Constants

This section is empty.

Variables

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{})

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(stack []string, err error) *KErr

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) LogStacks added in v0.0.13

func (e *KErr) LogStacks()

Jump to

Keyboard shortcuts

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