mirror of
https://github.com/golang/go.git
synced 2025-05-06 08:03:03 +00:00
Typo: identify->identity
parent
ec28e452be
commit
afb676fa29
@ -753,7 +753,7 @@ Typically your module's `go.sum` file should be committed along with your `go.mo
|
|||||||
|
|
||||||
### Should I still add a 'go.mod' file if I do not have any dependencies?
|
### Should I still add a 'go.mod' file if I do not have any dependencies?
|
||||||
|
|
||||||
Yes. This supports working outside of GOPATH, helps communicate to the ecosystem that you are opting in to modules, and in addition the `module` directive in your `go.mod` serves as a definitive declaration of the identify of your code (which is one reason why import comments might eventually be deprecated). Of course, modules are purely an opt-in capability in Go 1.11.
|
Yes. This supports working outside of GOPATH, helps communicate to the ecosystem that you are opting in to modules, and in addition the `module` directive in your `go.mod` serves as a definitive declaration of the identity of your code (which is one reason why import comments might eventually be deprecated). Of course, modules are purely an opt-in capability in Go 1.11.
|
||||||
|
|
||||||
## FAQs — Semantic Import Versioning
|
## FAQs — Semantic Import Versioning
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user