Documentation ¶
Index ¶
- Variables
- func Bool(b bool, format string, args ...interface{})
- func DirExists(path string, msgAndArgs ...interface{}) bool
- func Err(err error, format string, args ...interface{})
- func FileExists(path string, msgAndArgs ...interface{}) bool
- func If(b bool, t, f interface{}) interface{}
- func IfEquals(args ...interface{}) bool
- func IfIn(a interface{}, args ...interface{}) bool
- func IfNotIn(a interface{}, args ...interface{}) bool
- func MustNotError(err error)
- func P(d ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var True = Bool
Functions ¶
func DirExists ¶ added in v0.0.8
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 FileExists ¶ added in v0.0.8
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 MustNotError ¶
func MustNotError(err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.