Fix AppEngine builds

`go build -tags appengine [...]` currently yields:

```
.../github.com/sirupsen/logrus/text_formatter.go:84:4: undefined: initTerminal
```

This change implements `initTerminal` for AppEngine builds.
This commit is contained in:
Mark Dittmer 2018-09-17 13:50:48 -04:00
parent d23a0f20d4
commit 90501cfcc5
1 changed files with 11 additions and 0 deletions

11
terminal_appengine.go Normal file
View File

@ -0,0 +1,11 @@
// 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
package logrus
func initTerminal(w io.Writer) {
}