forked from mirror/logrus
Merge pull request #798 from cheungpat/gopherjs-compat
Fix GopherJS build tags
This commit is contained in:
commit
fc587f31c8
|
@ -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
|
||||
|
||||
package logrus
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
// +build js
|
||||
|
||||
package logrus
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
func checkIfTerminal(w io.Writer) bool {
|
||||
return false
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
// +build !appengine,!gopherjs
|
||||
// +build !appengine,!js
|
||||
|
||||
package logrus
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue