assert

package module
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 10 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, msgAndArgs ...interface{}) bool

DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.

func Err

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

func FileExists added in v0.0.8

func FileExists(path string, msgAndArgs ...interface{}) bool

FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.

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 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