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

missing v2 folder #135

Open
c-mcallister opened this issue Sep 8, 2021 · 0 comments
Open

missing v2 folder #135

c-mcallister opened this issue Sep 8, 2021 · 0 comments

Comments

@c-mcallister
Copy link

For repositories that provide libraries that are imported into other projects, if it needs to support multiple major versions at the same time (which is common) then the idiomatic go approach is to create a v2 folder to put it in (with its own go.mod and go.sum)

This should be referenced somewhere - possibly in the /pkg folder? or possibly by adding a /v2 folder to the root - as both are valid I think

see:
https://go.dev/blog/v2-go-modules#TOC_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant