go fmt
diff --git a/pty_linux.go b/pty_linux.go
index 174e3f4..cecbbd6 100644
--- a/pty_linux.go
+++ b/pty_linux.go
@@ -12,7 +12,6 @@
sys_TIOCSPTLCK = 0x40045431
)
-
// Opens a pty and its corresponding tty.
func Open() (pty, tty *os.File, err error) {
p, err := os.OpenFile("/dev/ptmx", os.O_RDWR, 0)
@@ -37,7 +36,6 @@
return p, t, nil
}
-
func ptsname(f *os.File) (string, error) {
var n int
err := ioctl(f.Fd(), sys_TIOCGPTN, &n)
@@ -47,13 +45,11 @@
return "/dev/pts/" + strconv.Itoa(n), nil
}
-
func unlockpt(f *os.File) error {
var u int
return ioctl(f.Fd(), sys_TIOCSPTLCK, &u)
}
-
func ioctl(fd uintptr, cmd uintptr, data *int) error {
_, _, e := syscall.Syscall(
syscall.SYS_IOCTL,
diff --git a/run.go b/run.go
index f3ff6e3..68d1212 100644
--- a/run.go
+++ b/run.go
@@ -1,11 +1,10 @@
package pty
import (
- "os/exec"
"os"
+ "os/exec"
)
-
// Run starts a process with its stdin, stdout, and stderr
// connected to a pseudo-terminal tty;
// Stdin and Stdout of the returned exec.Cmd