diff --git a/terminal_check_unix.go b/terminal_check_unix.go index 04748b85..c9aed267 100644 --- a/terminal_check_unix.go +++ b/terminal_check_unix.go @@ -1,5 +1,7 @@ +//go:build (linux || aix || zos) && !js && !wasi // +build linux aix zos // +build !js +// +build !wasi package logrus diff --git a/terminal_check_wasi.go b/terminal_check_wasi.go new file mode 100644 index 00000000..2822b212 --- /dev/null +++ b/terminal_check_wasi.go @@ -0,0 +1,8 @@ +//go:build wasi +// +build wasi + +package logrus + +func isTerminal(fd int) bool { + return false +}