Этот импорт работал нормально, когда я запускал приложение с dev_appserver.py
Я пытаюсь реорганизовать использование Firestore и Go 1.13
app.go content
package main
import (
"net/http"
"workout"
)
Структура проекта:
app.go
|-- workout dir
|-- workout.go file that contains (package workout)
Из корня рабочего каталога я запустил:
$ 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)