d32f0ff079
hashicorp/hcl library added some better validation for error and illegal characters. The diff is primarily improved error reporting. The parser.go change includes a case where illegal characters were silently dropped, but now get reported as invalid characters.
17 lines
349 B
Go
17 lines
349 B
Go
// Package pty provides functions for working with Unix terminals.
|
|
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()
|
|
}
|