io

package
v0.0.0-...-192ee93 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TempDir   string
	NopCloser = NewCloser(func() error {
		return nil
	})
)

Functions

func Close

func Close(c Closer)

Close is a convenience function to close a object that has a Close() method, ignoring any errors Used to satisfy errcheck lint

func DeleteFile

func DeleteFile(path string)

DeleteFile is best effort deletion of a file

Types

type Closer

type Closer interface {
	Close() error
}

func NewCloser

func NewCloser(close func() error) Closer

Jump to

Keyboard shortcuts

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