aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-15 00:40:24 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-15 00:40:24 +0100
commit17e0b07b1a328a54c8059bc1861a805e85a232ef (patch)
treea3666311778e82088b900d4ed2743191eb70eb1a
parent331e5c36b4721b20a18156505be74e123e58bb55 (diff)
...
-rw-r--r--console.go14
1 files 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)) }