Breite im Terminal begrenzen

This commit is contained in:
2026-07-12 12:25:51 +02:00
parent 8b23f8b116
commit a1504dd5e6
4 changed files with 133 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
//go:build !linux
package formatter
import "errors"
// getTerminalWidth returns the width of the stdout terminal in columns.
// On non-linux platforms, this is not implemented and always returns an error.
func getTerminalWidth() (int, error) {
return 0, errors.New("not implemented on this platform")
}