On Tuesday, July 28, 2020 at 11:21:38 PM UTC-4 Kurtis Rader wrote:

> See https://golang.org/ref/spec#Import_declarations. By default importing 
> a package requires using the package name to refer to any symbols it 
> exports; e.g., "jsonstuff.Prices". You can do "import . jsonstuff" to allow 
> accessing its public symbols without qualification. Google "go import 
> unqualified" for some discussions about the pros and cons of unqualified 
> imports.
>

As a beginner, please don't use the "." imports. It is very non-standard 
and bad form in all but a few specific cases.  Start good habits early. The 
correct eay to reference prices is "jsonstuff.Prices"

-- 
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/8afd146f-92ed-4dce-a9a2-f05c0d5d6794n%40googlegroups.com.

Reply via email to