define public symbols without build constraints

This commit is contained in:
Keith Rarick
2014-03-04 20:22:29 -08:00
parent 7a543c8bf6
commit 98c7b80083
2 changed files with 5 additions and 5 deletions

5
doc.go
View File

@@ -2,9 +2,14 @@
package pty
import (
"errors"
"os"
)
// ErrUnsupported is returned if a function is not
// available on the current platform.
var ErrUnsupported = errors.New("unsupported")
// Opens a pty and its corresponding tty.
func Open() (pty, tty *os.File, err error) {
return open()

View File

@@ -3,14 +3,9 @@
package pty
import (
"errors"
"os"
)
var (
ErrUnsupported = errors.New("Unsupported")
)
func open() (pty, tty *os.File, err error) {
return nil, nil, ErrUnsupported
}