From 17e0b07b1a328a54c8059bc1861a805e85a232ef Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 15 Jan 2018 00:40:24 +0100 Subject: ... --- console.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/console.go b/console.go index 3b15a48..e59a765 100644 --- a/console.go +++ b/console.go @@ -48,14 +48,6 @@ func (c *console) write(ctx context.Context) { } } -func (c *console) Read() uint16 { - return <-c.ich -} - -func (c *console) Write(v uint16) { - c.och <- v -} - -func (c *console) Len() uint16 { - return uint16(len(c.ich)) -} +func (c *console) Read() uint16 { return <-c.ich } +func (c *console) Write(v uint16) { c.och <- v } +func (c *console) Len() uint16 { return uint16(len(c.ich)) } -- cgit v1.2.3