Skip to content

Commit

Permalink
Fix GopherJS build tags
Browse files Browse the repository at this point in the history
The GopherJS build tag is "js" not "gopherjs"

Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Jun 21, 2018
1 parent 8b0c8a9 commit 692b80a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terminal_bsd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine,!gopherjs
// +build !appengine,!js

package logrus

Expand Down
2 changes: 1 addition & 1 deletion terminal_check_appengine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build appengine gopherjs
// +build appengine js

package logrus

Expand Down
2 changes: 1 addition & 1 deletion terminal_check_notappengine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !appengine,!gopherjs
// +build !appengine,!js

package logrus

Expand Down
2 changes: 1 addition & 1 deletion terminal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions text_formatter_js.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build js

package logrus

import (
"io"
)

func (f *TextFormatter) checkIfTerminal(w io.Writer) bool {
return false
}
3 changes: 3 additions & 0 deletions text_formatter_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !js

package logrus

0 comments on commit 692b80a

Please sign in to comment.