Thanks Kurtis and Jake.  Adding jsonstuff.Prices fixed it.
I have a second question related to weird behavior of using modules:
-------------------------------------------------------
$ go run main.go
Hello golang
{0}
$ go env | egrep PATH
GOPATH="/home/jfields/go"

$ rm go.mod
$ 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)
$ ls  /home/jfields/go/src/jsonstuff
typestuff.go
$ rm go.mod
$ go run main.go
Hello golang
{0}
-----------------------------------------------------------
I read somewhere we are supposed to use modules now.  When tried making a 
go.mod file,  program failed to find package jsonstuff?
Had to delete go.mod to get it to compile?
Sorry, another newbie question.

-- 
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/8014a915-5466-4234-af4c-db16e712ae50n%40googlegroups.com.

Reply via email to