tools: golang.org/x/tools/internal/fakenet Index | Files

package fakenet

import "golang.org/x/tools/internal/fakenet"

Index

Package Files

conn.go

func NewConn Uses

func NewConn(name string, in io.ReadCloser, out io.WriteCloser) net.Conn

NewConn returns a net.Conn built on top of the supplied reader and writer. It decouples the read and write on the conn from the underlying stream to enable Close to abort ones that are in progress. It's primary use is to fake a network connection from stdin and stdout.

Package fakenet imports 4 packages (graph) and is imported by 3 packages. Updated 2020-09-18. Refresh now. Tools for package owners.