// Copyright 2024 Matthew Rich . All rights reserved. package transport import ( "io" ) type Pipe struct { Reader io.ReadCloser Writer io.WriteCloser } func NewPipe() *Pipe { r,w := io.Pipe() return &Pipe{ Reader: r, Writer: w } }