@@ -25,23 +25,21 @@ import (
25
25
26
26
### Go Module Support
27
27
28
- The library supports Go's [ experimental modules] [ modules ] . Add stripe-go as a
29
- requirement in your ` go.mod ` along with its current version:
28
+ The library currently * does not* ship with first-class support for Stripe
29
+ modules. We put in support for it before, but ran into compatibility problems
30
+ for existing installations using Dep (see discussion in [ closer to the bottom
31
+ of this thread] [ gomodvsdep ] , and [ reverted support] [ gomodrevert ] . Our current
32
+ plan is to wait for better module compatibility in Dep (see a [ preliminary
33
+ patch here] [ depgomodsupport ] ), give the release a little grace time to become
34
+ more widely distributed, then bring support back.
35
+
36
+ For now, require stripe-go in ` go.mod ` like this:
30
37
31
38
``` go
32
39
module github.com /my/package
33
40
34
41
require (
35
- github.com /stripe/stripe-go /v55 v55.9.0
36
- )
37
- ```
38
-
39
- Imports should contain the major version as a virtual component of each path:
40
-
41
- ``` go
42
- import (
43
- " github.com/stripe/stripe-go/v55"
44
- " github.com/stripe/stripe-go/v55/customer"
42
+ github.com /stripe/stripe-go /v55
45
43
)
46
44
```
47
45
@@ -323,7 +321,10 @@ pull request][pulls].
323
321
[ api-docs ] : https://stripe.com/docs/api/go
324
322
[ api-changelog ] : https://stripe.com/docs/upgrades
325
323
[ connect ] : https://stripe.com/docs/connect/authentication
324
+ [ depgomodsupport ] : https://github.com/golang/dep/pull/1963
326
325
[ godoc ] : http://godoc.org/github.com/stripe/stripe-go
326
+ [ gomodrevert ] : https://github.com/stripe/stripe-go/pull/774
327
+ [ gomodvsdep ] : https://github.com/stripe/stripe-go/pull/712
327
328
[ issues ] : https://github.com/stripe/stripe-go/issues/new
328
329
[ modules ] : https://github.com/golang/go/wiki/Modules
329
330
[ package-management ] : https://code.google.com/p/go-wiki/wiki/PackageManagementTools
0 commit comments