name. package weather Import strings contain the package path and name. import “my/weather" // $GOPATH/src/my/weather! Qualify with the package name. weather.Precipitation()! A different name can be chosen. import rain "my/weather" rain.Precipitation()
Even at the call site.! In a diff during code review.! Reflection package requires symbols to be exported. type info struct { ImportPath string Rev string }
go get github.com/nathany/myproject clones to: src/github.com/nathany/myproject! import "github.com/nathany/myproject" Import paths are just strings.! The go compilers look for files on disk.