compact
This commit is contained in:
parent
3bc7f88fa0
commit
49c755bd2a
@ -18,8 +18,6 @@ import "bytes"
|
|||||||
import "os"
|
import "os"
|
||||||
import "io"
|
import "io"
|
||||||
|
|
||||||
var newline = []byte("\n")
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
// Wrapping the unbuffered `os.Stdin` with a buffered
|
// Wrapping the unbuffered `os.Stdin` with a buffered
|
||||||
@ -54,7 +52,7 @@ func main() {
|
|||||||
// Unless this read was for a prefix (not the full
|
// Unless this read was for a prefix (not the full
|
||||||
// line), we need to add our own newline.
|
// line), we need to add our own newline.
|
||||||
if !pfx {
|
if !pfx {
|
||||||
out.Write(newline)
|
out.WriteString("\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user