Documentation ¶
Index ¶
- Variables
- func Close(closer io.Closer)
- func CloseIgnoreClosed(closer io.Closer)
- func CloseResponse(resp *http.Response)
- func Defer(fn func() error)
- func DeferCall(fn interface{}, args ...interface{})
- func DeferCallSlice(fn interface{}, args ...interface{})
- func DeferIgnoreClosed(fn func() error)
- func IsClosed(err error) bool
- func Panic(err error)
- func Print(err error) bool
- func PrintWithDepthToLog(err error, depth int) bool
- func PrintWithDepthToLogBuffer(err error, depth int) *bytes.Buffer
- func PrintWithDepthToLogger(err error, depth int, log *log.Logger) bool
- func SetLogFlag()
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = true
Functions ¶
func CloseIgnoreClosed ¶ added in v1.0.2
func CloseResponse ¶
func DeferCallSlice ¶ added in v1.0.1
func DeferCallSlice(fn interface{}, args ...interface{})
func DeferIgnoreClosed ¶ added in v1.0.2
func DeferIgnoreClosed(fn func() error)
func PrintWithDepthToLog ¶
func PrintWithDepthToLogger ¶
func SetLogFlag ¶ added in v1.0.3
func SetLogFlag()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.