I'm trying to wrap my head around modules. When importing other packages into my project, there is a module prefix.
For example, import ( "example.com/potato/tomato" ) will import the "tomato" package from the "example.com/potato" module. But this whole time as I've been learning the language, the standard packages can be imported without any explicit prefix: import "fmt" and I found a go.mod in my Go distribution's standard library [1], so that suggests to me that the standard library is implemented as a module too. Why don't I have to supply a prefix for the standard library packages? Is this just a special case? [1] https://cs.opensource.google/go/go/+/refs/tags/go1.17:src/go.mod -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CDZT5VHC8FPS.15X2FMP9LEQ2S%40gilgalad.local.