default constructor

This commit is contained in:
bel
2023-03-01 22:55:11 -07:00
parent 4c78f40f0f
commit 011e37a8fa
4 changed files with 20 additions and 3 deletions

View File

@@ -1,6 +1,12 @@
package output
import "os"
type Output interface {
Close()
Press(...Key)
}
func New() Output {
return NewWriter(os.Stderr)
}