pproffd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 4 Imported by: 237

Documentation

Overview

Package pproffd is for detecting resource leaks due to unclosed handles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapNetConn

func WrapNetConn(nc net.Conn) net.Conn

Tracks a net.Conn until Close() is explicitly called.

Types

type OSFile

type OSFile interface {
	io.Reader
	io.Seeker
	io.Closer
	io.Writer
	Stat() (os.FileInfo, error)
	io.ReaderAt
	io.WriterAt
}

func WrapOSFile

func WrapOSFile(f *os.File) OSFile

Jump to

Keyboard shortcuts

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