Fix GopherJS build tags
The GopherJS build tag is "js" not "gopherjs" Signed-off-by: Christian Stewart <christian@paral.in>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// +build darwin freebsd openbsd netbsd dragonfly
|
||||
// +build !appengine,!gopherjs
|
||||
// +build !appengine,!js
|
||||
|
||||
package logrus
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build appengine gopherjs
|
||||
// +build appengine js
|
||||
|
||||
package logrus
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build !appengine,!gopherjs
|
||||
// +build !appengine,!js
|
||||
|
||||
package logrus
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !appengine,!gopherjs
|
||||
// +build !appengine,!js
|
||||
|
||||
package logrus
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// +build js
|
||||
|
||||
package logrus
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
func (f *TextFormatter) checkIfTerminal(w io.Writer) bool {
|
||||
return false
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// +build !js
|
||||
|
||||
package logrus
|
||||
Reference in New Issue
Block a user