Browse Source

Make buildable on Windows + goapp

Go on Google AppEngine restricts importing syscall. It causes build failure testing applications using go-colorable (especially when using a framework using go-colorable) on Windows.
ikedam 8 years ago
parent
commit
77c725d707
2 changed files with 3 additions and 1 deletions
  1. 1 1
      colorable_others.go
  2. 2 0
      colorable_windows.go

+ 1 - 1
colorable_others.go

@@ -1,4 +1,4 @@
-// +build !windows
+// +build !windows OR appengine
 
 package colorable
 

+ 2 - 0
colorable_windows.go

@@ -1,3 +1,5 @@
+// +build !appengine
+
 package colorable
 
 import (