// Package pty provides functions for working with Unix terminals.packageptyimport("errors""os")// ErrUnsupported is returned if a function is not// available on the current platform.varErrUnsupported=errors.New("unsupported")// Opens a pty and its corresponding tty.funcOpen()(pty,tty*os.File,errerror){returnopen()}