Re: [go-nuts] import a file

2020-07-29 Thread jules
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

[go-nuts] import a file

2020-07-28 Thread jules
I'm new to golang and learning it in evenings with no one to ask questions of. I have a local files: Here is /home/jules/go/src/jsonstuff/typestuff.go : package jsonstuff type Prices struct { BidPrice float64 `json:"p"` } -