Merge pull request #798 from cheungpat/gopherjs-compat

Fix GopherJS build tags
This commit is contained in:
Aaron Greenlee 2018-08-16 21:25:29 -04:00 committed by GitHub
commit fc587f31c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,5 @@
// +build darwin freebsd openbsd netbsd dragonfly // +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine,!gopherjs // +build !appengine,!js
package logrus package logrus

View File

@ -1,4 +1,4 @@
// +build appengine gopherjs // +build appengine
package logrus package logrus

11
terminal_check_js.go Normal file
View File

@ -0,0 +1,11 @@
// +build js
package logrus
import (
"io"
)
func checkIfTerminal(w io.Writer) bool {
return false
}

View File

@ -1,4 +1,4 @@
// +build !appengine,!gopherjs // +build !appengine,!js
package logrus package logrus

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build !appengine,!gopherjs // +build !appengine,!js
package logrus package logrus