Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a `go.mod` file to the project for aspiring vgo support. As described in #559, without such a file, vgo will default to the lowest released major version available, which in our case is `v1.0.3`. The vgo proposal seems to have been officially accepted, so having support for it early is a bit of a nicety that we can offer. The one caveat of this addition is that while vgo users should import stripe-go like this: import ( "github.com/stripe/stripe-go/v30" ) We can't actually recommend this `import` style anywhere in our core documentation yet (although it's okay to put it in the `README.md` in a vgo-specific section). This is because the `v30` suffix at the end of the path isn't a real physical path, but rather just a symbolic one that vgo knows how to parse and resolve as a tag. Trying to use this import with convention `go get` will fail. The good news is that this problem has been acknowledged by the core team, and there will eventually be a pre-vgo `go get` that understands how to do basic tag resolution [1]. At some point in the future after this has become widely available, we can probably switch over to recommending a single install invocation for vgo and pre-vgo users. Fixes #559. [1] https://go-review.googlesource.com/c/go/+/109340
- Loading branch information