assert

package
v0.0.0-...-d30b894 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(argName string, assertFunc func() bool)

Assert assert that the checkFunc should be passed, or the program will panic error.

func NotEmpty

func NotEmpty(argName, value string)

Assert assert the string length should not be empty

func NotNil

func NotNil(argName string, data interface{})

NotNil assert the data should not be nil

func PanicErr

func PanicErr(err error)

PanicErr if the error is not nil, panic the error

Types

This section is empty.

Jump to

Keyboard shortcuts

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