must

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call added in v1.9.1

func Call(value interface{}, err error) interface{}

Call is used for check func returns an interface{} value and an error. If err is not nil, panics with the error.

func CallBool added in v1.9.1

func CallBool(value bool, err error) bool

CallBool is used for check func returns a bool value and an error. If err is not nil, panics with the error.

func CallBytes added in v1.9.1

func CallBytes(value []byte, err error) []byte

CallBytes is used for check func returns a []byte value and an error. If err is not nil, panics with the error.

func CallFile added in v1.9.1

func CallFile(value *os.File, err error) *os.File

CallFile is used for check func returns an *os.File value and an error. If err is not nil, panics with the error.

func CallFileInfo added in v1.9.1

func CallFileInfo(value *os.FileInfo, err error) *os.FileInfo

CallFileInfo is used for check func returns an *os.FileInfo value and an error. If err is not nil, panics with the error.

func CallInt added in v1.9.1

func CallInt(value int, err error) int

CallInt is used for check func returns an int value and an error. If err is not nil, panics with the error.

func CallInt64 added in v1.9.1

func CallInt64(value int64, err error) int64

CallInt64 is used for check func returns an int64 value and an error. If err is not nil, panics with the error.

func CallReadCloser added in v1.9.1

func CallReadCloser(value io.ReadCloser, err error) io.ReadCloser

CallReadCloser is used for check func returns an io.ReadCloser value and an error. If err is not nil, panics with the error.

func CallReader added in v1.9.1

func CallReader(value io.Reader, err error) io.Reader

CallReader is used for check func returns an io.Reader value and an error. If err is not nil, panics with the error.

func CallString added in v1.9.1

func CallString(value string, err error) string

CallString is used for check func returns a string value and an error. If err is not nil, panics with the error.

func CallUInt added in v1.9.1

func CallUInt(value uint, err error) uint

CallUInt is used for check func returns an uint value and an error. If err is not nil, panics with the error.

func CallUInt64 added in v1.9.1

func CallUInt64(value uint64, err error) uint64

CallUInt64 is used for check func returns an uint64 value and an error. If err is not nil, panics with the error.

func CallWriteCloser added in v1.9.1

func CallWriteCloser(value io.WriteCloser, err error) io.WriteCloser

CallWriteCloser is used for check func returns an io.WriteCloser value and an error. If err is not nil, panics with the error.

func CallWriter added in v1.9.1

func CallWriter(value io.Writer, err error) io.Writer

CallWriter is used for check func returns an io.Writer value and an error. If err is not nil, panics with the error.

func Run

func Run(err error)

Run is used for check func with an error, and no return value. If err is not nil, panics with the error.

func RunWithMessage

func RunWithMessage(err error, message string)

RunWithMessage is used for check func with an error, and no return value. If err is not nil, panics with a new error wrap the origin err and message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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