Skip to content

Configuring GoLand for WebAssembly

Justin Clift edited this page Sep 4, 2018 · 9 revisions

Configuring GoLand for WebAssembly (Wasm) projects

Initial project configuration

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

GoLand Wasm Setup pic2

GoLand Wasm Setup pic3

GoLand Wasm Setup pic4

Configuring Run/Debug settings

With the initial project settings changed, you'll probably want to configure the Run/Debug settings next.

That will let you recompile the .wasm file by just launching RunRundd (Shift+F10 on Linux).

NOTE - This section is still "Work In Progress" 😉

GoLand Wasm Build pic2

GoLand Wasm Build pic3

GoLand Wasm Build pic4

GoLand Wasm Build pic5

GoLand Wasm Build pic6

GoLand Wasm Build pic7

GoLand Wasm Build pic8

GoLand Wasm Build pic9

GoLand Wasm Build pic10

GoLand Wasm Build pic11

GoLand Wasm Build pic12

Clone this wiki locally