assert

package module
v0.0.12 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 GetStacks added in v0.0.12

func GetStacks() []string

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

func LogStacks()

func MustNotError

func MustNotError(err error)

func NotNil added in v0.0.11

func NotNil(err error)

func P

func P(d ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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