This import worked fine when I was starting app with dev_appserver.py
I am trying to refactor to use Firestore and Go 1.13
app.go content
package main
import (
"net/http"
"workout"
)
Project structure:
app.go
|-- workout dir
|-- workout.go file that contains (package workout)
From the root of the Working Directory I ran:
$ go run *.go
app.go:15:2: cannot find package "workout" in any of:
/usr/local/go/src/workout (from $GOROOT)
/Users/X/go/src/workout (from $GOPATH)
$ go run *.go workout/*.go
named files must all be in one directory; have ./ and workout/
X@MacBook-Pro Thu Oct 31 10:48:13 ~/Dropbox/go/src/workoutNew
$ go build
app.go:15:2: cannot find package "workout" in any of:
/usr/local/go/src/workout (from $GOROOT)
/Users/X/go/src/workout (from $GOPATH)