Просмотр исходного кода

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 лет назад
Родитель
Сommit
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 (