WAZERO NET
this project provider net/http for wazero, it not belong to wazero's official project
Dial's Conn can not convert to net.TCPConn,net.UDPConn
Install
go get github.com/labulakalia/wazero_net@v0.0.4
Example
must use go version >= go1.24, because go1.24 will support go:wasmexport directive
to export function
Install Required Go Version
go install golang.org/dl/go1.24rc1@latest
go1.24rc1 download
cd example
GOOS=wasip1 GOARCH=wasm go1.24rc1 build -buildmode=c-shared -o http.wasm http.go
GOOS=wasip1 GOARCH=wasm go1.24rc1 build -buildmode=c-shared -o net.wasm net.go
go1.24rc1 run example.go
Todo
- support ip,unix addr
- add unit test
Some Limit
https://go.dev/blog/wasi#limitations, this is example code