Documentation ¶
Index ¶
- func CheckNotEmpty(str string, msg ...interface{}) error
- func CheckNotNil(obj interface{}, msg ...interface{}) error
- func CheckTrue(b bool, msg ...interface{}) error
- func MustBeTrue(b bool, msg ...interface{})
- func MustNotBeEmpty(str string, msg ...interface{}) string
- func MustNotBeNil(obj interface{}, msg ...interface{}) interface{}
- type PreconditionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNotEmpty ¶
func CheckNotNil ¶
func CheckNotNil(obj interface{}, msg ...interface{}) error
func MustBeTrue ¶
func MustBeTrue(b bool, msg ...interface{})
func MustNotBeEmpty ¶
func MustNotBeNil ¶
func MustNotBeNil(obj interface{}, msg ...interface{}) interface{}
Types ¶
type PreconditionError ¶
type PreconditionError struct {
// contains filtered or unexported fields
}
func (*PreconditionError) Error ¶
func (e *PreconditionError) Error() string
Click to show internal directories.
Click to hide internal directories.