goerr

package module
v0.0.0-...-1ee9dfc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: GPL-2.0 Imports: 1 Imported by: 3

README

goerr 0.1

strip / add error handling to a go file

GoDoc Bug Reports Build Status Code Climate Test Coverage Gobuild Download

Build Status wercker status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OR0

func OR0(fun q)

OR0 is a returner for 0 return-valued functions. Every function that contains wrappers who call Return(N), must be wrapped in a matching returner to obtain N return values. Otherwise, you get a panic from the Return.

func OR1

func OR1(fun q, args ...interface{}) q

OR1 is a returner for 1 return-valued functions

func OR2

func OR2(fun q, args ...interface{}) (q, q)

OR2 is a returner for 2 return-valued functions

func OR3

func OR3(fun q, args ...interface{}) (q, q, q)

OR3 is a returner for 3 return-valued functions

func OR4

func OR4(fun q, args ...interface{}) (q, q, q, q)

OR4 is a returner for 4 return-valued functions

func OR5

func OR5(fun q, args ...interface{}) (q, q, q, q, q)

OR5 is a returner for 5 return-valued functions

func OR6

func OR6(fun q, args ...interface{}) (q, q, q, q, q, q)

OR6 is a returner for 6 return-valued functions

func OR7

func OR7(fun q, args ...interface{}) (q, q, q, q, q, q, q)

OR7 is a returner for 7 return-valued functions

func OR8

func OR8(fun q, args ...interface{}) (q, q, q, q, q, q, q, q)

OR8 is a returner for 8 return-valued functions

func OR9

func OR9(fun q, args ...interface{}) (q, q, q, q, q, q, q, q, q)

OR9 is a returner for 9 return-valued functions

func Return

func Return(a ...interface{})

Return is called from the error handling functions

func XQZ

func XQZ(r interface{}) interface{}

XQZ is used in the clients code to wrap all calls recover to avoid recovering goerr internal panic by the client's code, for example: XQZ(recover());. Elsewhere, it doesn't do anything, you can delete it

Types

This section is empty.

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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