瀏覽代碼

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 年之前
父節點
當前提交
77c725d707
共有 2 個文件被更改,包括 3 次插入1 次删除
  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 (