define public symbols without build constraints
Keith Rarick
10 years ago
1 | 1 |
package pty
|
2 | 2 |
|
3 | 3 |
import (
|
|
4 |
"errors"
|
4 | 5 |
"os"
|
5 | 6 |
)
|
|
7 |
|
|
8 |
// ErrUnsupported is returned if a function is not
|
|
9 |
// available on the current platform.
|
|
10 |
var ErrUnsupported = errors.New("unsupported")
|
6 | 11 |
|
7 | 12 |
// Opens a pty and its corresponding tty.
|
8 | 13 |
func Open() (pty, tty *os.File, err error) {
|
2 | 2 |
package pty
|
3 | 3 |
|
4 | 4 |
import (
|
5 | |
"errors"
|
6 | 5 |
"os"
|
7 | |
)
|
8 | |
|
9 | |
var (
|
10 | |
ErrUnsupported = errors.New("Unsupported")
|
11 | 6 |
)
|
12 | 7 |
|
13 | 8 |
func open() (pty, tty *os.File, err error) {
|