github.com/hoop33/elvish@v0.0.0-20160801152013-6d25485beab4/eval/pipe.go (about) 1 package eval 2 3 import ( 4 "fmt" 5 "os" 6 ) 7 8 type Pipe struct { 9 r, w *os.File 10 } 11 12 var _ Value = Pipe{} 13 14 func (Pipe) Kind() string { 15 return "pipe" 16 } 17 18 func (p Pipe) Repr(int) string { 19 return fmt.Sprintf("<pipe{%v %v}>", p.r.Fd(), p.w.Fd()) 20 }