Skip to content

Cannot compile into web assembly #23

Description

@punkzberryz

I tried to build *.wasm with this command:
GOOS=js GOARCH=wasm go build -o main.wasm main.go

But got this error:

........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:81:14: undefined: strbuf
........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:266:11: undefined: strbuf
........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:270:11: undefined: strbuf
........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:286:37: undefined: strbuf
........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:299:21: undefined: strbuf
........\go\pkg\mod\github.com\ebfe\scard@v0.0.0-20190212122703-c3d1b1916a95\scard.go:81:14: too many errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions