--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a3bdeaae-19b4-4a31-ad56-b5afe54d2185o%40googlegroups.com.
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.
You dop not import files and you donot run files and you do not test files. Files contain thesources but are basically uninteresting: Focus onpackages (and modules).
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/pP-0WEpzbEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGrdgiX%2BN%2BospARM7adQ1E0wk-K7M73Jbj1KEUXkxjGGq9Q9zg%40mail.gmail.com.
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAAcmRO8TZ4ftK%2BFsTQTw7nEGZ0e3gFFpv5uygb4S6YavVRe_Xg%40mail.gmail.com.
Modules are a great idea and I want to use them, but I can't get it to compilea "hello golang" program even:=======================$ ls /home/jfields/go/src/jsonstuff
typestuff.go
$ go mod init src
go: creating new go.mod: module src
$ more go.mod
module src
go 1.14
$ go run main.go
main.go:7:2: package jsonstuff is not in GOROOT (/usr/local/go/src/jsonstuff)
$ rm go.mod
$ go run main.go
Hello golang
{0}=========================