1
0
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:
Tianon Gravi 2024-03-20 09:41:19 -07:00
parent 64a0cd92b7
commit ccc5c46e5f

View File

@ -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{' '})