You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot load honnef.co/go/js/dom/v2: no Go source files #70
The dom/v2 package uses syscall/js package to access the browser's DOM API. The syscall/js package is only available when building with GOOS=js GOARCH=wasm or with GopherJS (which uses GOARCH=js).
I suspect the problem is you're trying to build your program for the wrong OS/architecture that doesn't support syscall/js.
Activity
dmitshur commentedon Aug 10, 2019
The
dom/v2package usessyscall/jspackage to access the browser's DOM API. Thesyscall/jspackage is only available when building withGOOS=js GOARCH=wasmor with GopherJS (which usesGOARCH=js).I suspect the problem is you're trying to build your program for the wrong OS/architecture that doesn't support
syscall/js.