ext

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ext contains some extra code which does not fit into the categorization of the stdlib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	Close() error
}

Closer is an alias interface to io.Closer.

type CloserFunc

type CloserFunc func()

CloserFunc makes any function a Closer.

func (CloserFunc) Close

func (f CloserFunc) Close() (err error)

Close calls the underlying function and converts any panic to an error.

type Closers

type Closers []Closer

Closers is a collection of Closer instances.

func (Closers) Close

func (c Closers) Close() error

Close calls the underlying Closer instances and returns all their errors as a single value.

Jump to

Keyboard shortcuts

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