mirror of
https://github.com/tianon/gosu.git
synced 2025-04-18 19:04:06 +03:00
Switch from io.Writer
to explicit *os.File
(shaving off a tiny amount more bytes)
This commit is contained in:
parent
64a0cd92b7
commit
ccc5c46e5f
3
main.go
3
main.go
@ -1,7 +1,6 @@
|
||||
package main // import "github.com/tianon/gosu"
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
@ -34,7 +33,7 @@ Usage: ` + self + ` user-spec command [args]
|
||||
return t[1:]
|
||||
}
|
||||
|
||||
func exit(code int, w io.Writer, ss ...string) {
|
||||
func exit(code int, w *os.File, ss ...string) {
|
||||
for i, s := range ss {
|
||||
if i > 0 {
|
||||
w.Write([]byte{' '})
|
||||
|
Loading…
x
Reference in New Issue
Block a user