juh2
1
Documentation says:
private: Comma separated glob list matching paths that should be treated as private.
The example, showing the default presumably, marks *.*
as private. This might refer to the project root? Or every file?
And what is the meaning of “pirvate”. I read something about private go modules in different locations on the net, but I cannot get it.
Can anyone shed some light on this?
TIA
1 Like
razon
2
The example, showing the default presumably, marks *.*
as private. This might refer to the project root? Or every file?
It’s used to indicate whether if the module is private, which matches the module path (the value of go.mod
’s module
directive).
And what is the meaning of pirvate.
Literal meaning, the module isn’t public for everyone, users have to authenticate with proper permission before accessing the module.
See Go Modules Reference - The Go Programming Language for details, and search private
and GOPRIVATE
on that page.
1 Like