From 123cd06d67d8767b0ade4172dc2830e82f296c60 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Tue, 4 Sep 2018 02:07:36 +0100 Subject: [PATCH] Create initial page showing the setup pieces needed for GoLand --- Configuring-GoLand-for-WebAssembly.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Configuring-GoLand-for-WebAssembly.md diff --git a/Configuring-GoLand-for-WebAssembly.md b/Configuring-GoLand-for-WebAssembly.md new file mode 100644 index 00000000..b011cfd3 --- /dev/null +++ b/Configuring-GoLand-for-WebAssembly.md @@ -0,0 +1,13 @@ +## Configuring GoLand for WebAssembly (Wasm) projects + +When you first open or start a WebAssembly project in GoLand, it won't understand the "*syscall/js*" package. + +That's easily fixable, by changing the **GOOS** and **GOARCH** values in the project settings, as per the screenshots below. + +![Goland Wasm Setup pic1](https://github.com/justinclift/wasmWikiPics/raw/master/png/Golang-Wasm-Setup1.png) + +![Goland Wasm Setup pic2](https://github.com/justinclift/wasmWikiPics/raw/master/png/Golang-Wasm-Setup2.png) + +![Goland Wasm Setup pic3](https://github.com/justinclift/wasmWikiPics/raw/master/png/Golang-Wasm-Setup3.png) + +![Goland Wasm Setup pic4](https://github.com/justinclift/wasmWikiPics/raw/master/png/Golang-Wasm-Setup4.png) \ No newline at end of file