Documentation ¶
Index ¶
- func Call(value interface{}, err error) interface{}
- func CallBool(value bool, err error) bool
- func CallBytes(value []byte, err error) []byte
- func CallFile(value *os.File, err error) *os.File
- func CallFileInfo(value *os.FileInfo, err error) *os.FileInfo
- func CallInt(value int, err error) int
- func CallInt64(value int64, err error) int64
- func CallReadCloser(value io.ReadCloser, err error) io.ReadCloser
- func CallReader(value io.Reader, err error) io.Reader
- func CallString(value string, err error) string
- func CallUInt(value uint, err error) uint
- func CallUInt64(value uint64, err error) uint64
- func CallWriteCloser(value io.WriteCloser, err error) io.WriteCloser
- func CallWriter(value io.Writer, err error) io.Writer
- func Run(err error)
- func RunWithMessage(err error, message string)
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
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
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
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
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
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
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
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
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
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
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
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 ¶
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.