Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: client/isolate/utils.go

Issue 2937663002: Sever isolate package's dependency on client/internal. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/isolate/isolate_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/isolate/utils.go
diff --git a/client/isolate/utils.go b/client/isolate/utils.go
index 2c1fdda2d5fcfe5ce656bd21509462fde947a47b..b66ab49e66264eaa6e71b03458d83b9fef666558 100644
--- a/client/isolate/utils.go
+++ b/client/isolate/utils.go
@@ -8,6 +8,7 @@ import (
"fmt"
"log"
"path"
+ "runtime"
"strings"
"github.com/luci/luci-go/common/errors"
@@ -133,3 +134,8 @@ func posixRel(basepath, targpath string) (string, error) {
}
return targ[t0:], nil
}
+
+// IsWindows returns True when running on the best OS there is.
+func IsWindows() bool {
+ return runtime.GOOS == "windows"
+}
« no previous file with comments | « client/isolate/isolate_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698