bytecodealliance / bytecodealliance/wit-bindgen
go: make generated code more idiomatic
Open
gen-go
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 286
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 19
Description
`wit-bindgen-go` was written by a Go novice (me) and could use some feedback from experienced Go developers regarding API idioms. Here are some examples of potential improvements:
- Make functions which return `result` in WIT return e.g. `(T, *E)` in Go and ensure that `*E` implements the standard Go `Error` interface
- Implement `io.Writer` for `StreamWriter[u8]` and `io.Reader` for `StreamReader[u8]`
I'm sure others will have more ideas.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.