Configuring GoLand for WebAssembly
Justin Clift edited this page Jan 20, 2019
·
8 revisions
← Back to the main WebAssembly page.
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.

Note - The screenshot below shows how to access Settings on a Linux desktop. If you're using macOS, you'll probably need to access them through the standard macOS Preferences option.



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 Run (Shift+F10 on Linux).











Finished, your GoLand setup should now be complete.
← Back to the main WebAssembly page.
Pages 168
- Home
- Articles
- AssemblyPolicy
- AVX512
- Benchmarks
- Blogs
- Books
- BoundingResourceUse
- cgo
- ChromeOS
- CodeReview
- CodeReviewComments
- CodeReviewConcurrency
- CodeTools
- Comments
- CommitMessage
- CommonMistakes
- CompilerOptimizations
- Conferences
- Configuring GoLand for WebAssembly
- Contributing to gopls
- CoreDumpDebugging
- Courses
- CreatingSubRepository
- CSSStyleGuide
- CustomPprofProfiles
- Darwin
- DashboardBuilders
- Deprecated
- DesignDocuments
- DevExp
- Diagnostics
- Download build farm failed logs and debugging
- DragonFly BSD
- Errors
- ErrorValueFAQ
- ExperienceReports
- FileTreeDocumentation
- FreeBSD
- FromXToGo
- Frozen
- Gardening
- GccgoCrossCompilation
- GcToolchainTricks
- GerritAccess
- GerritBot
- GithubAccess
- GitHubCodeLayout
- Go 1.10 Release Party
- Go 1.6 release party
- Go 1.8 Release Party
- Go Community Slides
- Go Release Cycle
- Go1point1Gotchas
- Go2
- Go2ErrorHandlingFeedback
- Go2ErrorValuesFeedback
- Go2GenericsFeedback
- GoArm
- GoForCPPProgrammers
- GoGenerateTools
- GoGetProxyConfig
- GoGetTools
- golang tools
- GoMips
- Gomote
- GOPATH
- Gopher
- gopherbot
- gopls
- gopls integrator FAQ
- GoStrings
- GoTalks
- GoUserGroups
- GoUsers
- GoVsGenerics
- HandlingIssues
- Hashing
- heapdump13
- heapdump14
- heapdump15
- heapdump15 through heapdump17
- HostedContinuousIntegration
- How to ask for help
- HowToAsk
- HttpFetch
- HttpStaticFiles
- IDEsAndTextEditorPlugins
- InstallFromSource
- InterfaceSlice
- InvalidFlag
- Iota
- IssueLabels
- Learn
- LearnConcurrency
- LearnErrorHandling
- LearnServerProgramming
- LearnTesting
- Linux
- LinuxKernelSignalVectorBug
- Livestreams
- LockOSThread
- MethodSets
- MinimumRequirements
- MinorReleases
- Mobile
- Modules
- MultipleGoRoots
- MutexOrChannel
- NativeClient
- NetBSD
- NewSpeakers
- NoMeToo
- NonEnglish
- NoPlusOne
- OlderVersions
- OpenBSD
- PackageManagementTools
- PackagePublishing
- PanicAndRecover
- PerfDashboard
- Performance
- Plan9
- Podcasts
- PortingPolicy
- PriorDiscussion
- Projects
- Proposals
- ProviderIntegration
- Questions
- RaceDetector
- Range
- RateLimiting
- Rationales
- ResearchPapers
- Resolving Problems From Modified Module Path
- Screencasts
- SendingMail
- SettingGOPATH
- SignalHandling
- SimultaneousAssignment
- SliceTricks
- SlowBots
- Solaris
- Spectre
- Spelling
- SQLDrivers
- SQLInterface
- Style
- SuccessStories
- Switch
- TableDrivenTests
- TargetSpecific
- TestComments
- Timeouts
- Training
- Ubuntu
- vgo
- WebAccessibilityResourcesAndTips
- WebAssembly
- Well known struct tags
- WhyGo
- Windows
- windows scoop install go cli
- WindowsBuild
- WindowsCrossCompiling
- WindowsDLLs
- X Repositories