Re: [go-nuts] import a file
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
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"` } -