Skip to content

WASM build failing #19

Open
Open
@apuatcfbd

Description

@apuatcfbd

I'm trying to put it in WASM to be used with JS (in browser). But WASM build is failing.
Build cmd GOOS=js GOARCH=wasm go build -o main.wasm main.go

error

# github.com/qiniu/iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:11:11: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:19:19: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:21:13: undefined: DefaultBufSize
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:49:14: undefined: EILSEQ
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:12:11: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:19:19: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:21:13: undefined: DefaultBufSize
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:70:15: undefined: EILSEQ
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:102:15: undefined: EILSEQ

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