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:
Christian Stewart 2018-06-20 21:39:23 -07:00
parent 75068beb13
commit eed1c0f832
6 changed files with 18 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -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

11
text_formatter_js.go Normal file
View File

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

3
text_formatter_other.go Normal file
View File

@ -0,0 +1,3 @@
// +build !js
package logrus