post inicial

This commit is contained in:
lastdragon
2026-09-27 16:04:02 -06:00
parent d84587e1f3
commit 52864794f5
67 changed files with 15023 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
//go:build !linux
package term
import (
"errors"
"io"
"os"
)
// ErrNotTerminal indica que la entrada no es un terminal interactivo.
var ErrNotTerminal = errors.New("input is not an interactive terminal")
// IsTerminal siempre es false fuera de Linux (plataforma no soportada).
func IsTerminal(f *os.File) bool { return false }
// ReadPassword no está disponible fuera de Linux.
func ReadPassword(in *os.File, out io.Writer, prompt string) (string, error) {
return "", ErrNotTerminal
}
// DisableEcho no está disponible fuera de Linux.
func DisableEcho(f *os.File) (func(), error) { return nil, ErrNotTerminal }