Go: Add `component-type` custom section
Unlike the C and Rust code generators, the Go code generator does not seem to embed the wit-bindgen version in the producer custom section in the "processed-by" field. The field should be in a format like the other languages with the key "wit-bindgen-go" and the version "0.8.0"
Related to this issue but in a different context, I believe go generator does not generate "// Generated by wit-bindgen 0.8.0. DO NOT EDIT!" message to the generated Go source code files.
My quesiton is how can we embed wit-bindgen version to the component? C bindgen generates a object file that does so. What's the mechanism for Golang to achieve the same thing?
I've opened #621 to address the generated code preamble.
We really need to add the entire component-type section not just the producer information. I'll adjust the issue to reflect that.
We really need to add the entire component-type section not just the producer information. I'll adjust the issue to reflect that.
I agree!