aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) }