precond

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotEmpty

func CheckNotEmpty(str string, msg ...interface{}) error

func CheckNotNil

func CheckNotNil(obj interface{}, msg ...interface{}) error

func CheckTrue

func CheckTrue(b bool, msg ...interface{}) error

func MustBeTrue

func MustBeTrue(b bool, msg ...interface{})

func MustNotBeEmpty

func MustNotBeEmpty(str string, msg ...interface{}) string

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

Jump to

Keyboard shortcuts

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