From 3f90cee1e41a38ba27c831844c002952512997c0 Mon Sep 17 00:00:00 2001 From: David Bariod Date: Sat, 6 Oct 2018 15:21:56 +0200 Subject: [PATCH] Rationalize os specific build constraints --- terminal_appengine.go | 13 ------------- terminal_bsd.go | 17 ----------------- terminal_linux.go | 21 --------------------- terminal_notwindows.go | 8 ++++++++ 4 files changed, 8 insertions(+), 51 deletions(-) delete mode 100644 terminal_appengine.go delete mode 100644 terminal_bsd.go delete mode 100644 terminal_linux.go create mode 100644 terminal_notwindows.go diff --git a/terminal_appengine.go b/terminal_appengine.go deleted file mode 100644 index 72f679c..0000000 --- a/terminal_appengine.go +++ /dev/null @@ -1,13 +0,0 @@ -// Based on ssh/terminal: -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build appengine - -package logrus - -import "io" - -func initTerminal(w io.Writer) { -} diff --git a/terminal_bsd.go b/terminal_bsd.go deleted file mode 100644 index 62ca252..0000000 --- a/terminal_bsd.go +++ /dev/null @@ -1,17 +0,0 @@ -// +build darwin freebsd openbsd netbsd dragonfly -// +build !appengine,!js - -package logrus - -import ( - "io" - - "golang.org/x/sys/unix" -) - -const ioctlReadTermios = unix.TIOCGETA - -type Termios unix.Termios - -func initTerminal(w io.Writer) { -} diff --git a/terminal_linux.go b/terminal_linux.go deleted file mode 100644 index 18066f0..0000000 --- a/terminal_linux.go +++ /dev/null @@ -1,21 +0,0 @@ -// Based on ssh/terminal: -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !appengine,!js - -package logrus - -import ( - "io" - - "golang.org/x/sys/unix" -) - -const ioctlReadTermios = unix.TCGETS - -type Termios unix.Termios - -func initTerminal(w io.Writer) { -} diff --git a/terminal_notwindows.go b/terminal_notwindows.go new file mode 100644 index 0000000..3dbd237 --- /dev/null +++ b/terminal_notwindows.go @@ -0,0 +1,8 @@ +// +build !windows + +package logrus + +import "io" + +func initTerminal(w io.Writer) { +}