From 15f62b29cf316111c923ab1fc40911b2f27cca3e Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 30 Aug 2018 05:48:16 +0200 Subject: [PATCH] Add runtime.GOOS --- src/runtime/os_js.go | 5 +++++ src/runtime/os_linux.go | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 src/runtime/os_js.go create mode 100644 src/runtime/os_linux.go diff --git a/src/runtime/os_js.go b/src/runtime/os_js.go new file mode 100644 index 00000000..422b1d32 --- /dev/null +++ b/src/runtime/os_js.go @@ -0,0 +1,5 @@ +// +build js + +package runtime + +const GOOS = "js" diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go new file mode 100644 index 00000000..ab43c3a4 --- /dev/null +++ b/src/runtime/os_linux.go @@ -0,0 +1,5 @@ +// +build linux + +package runtime + +const GOOS = "linux"