12 lines
307 B
Go
12 lines
307 B
Go
//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")
|
|
}
|