Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: generate Version constant in each package #66

Open
ydnar opened this issue Mar 9, 2024 · 1 comment
Open

proposal: generate Version constant in each package #66

ydnar opened this issue Mar 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ydnar
Copy link
Collaborator

ydnar commented Mar 9, 2024

For each generated Go package, add a Version constant which corresponds to the WIT package version, e.g.:

package wasi:io/streams@0.2.0
package streams

const Version = "0.2.0"
@ydnar
Copy link
Collaborator Author

ydnar commented Apr 11, 2024

Not sure if this is hugely valuable, and it does clobber the package namespace with a generic identifier Version.

@ydnar ydnar added the enhancement New feature or request label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant