我无法让我的 golang prog 通过暴发户运行。
这是我的项目目录--
/go
/src
/print.io
/geo
main.go
/geodomain
[.. files ..]
我将我的 gopath 设置为/go
上面的目录。
在/geo
我可以运行的文件夹中go run main.go
,它可以工作。
但是,使用以下新贵配置其日志记录main.go:8:2: import "print.io/geodomain": cannot find package
-
为什么它不像我手动运行命令时那样从新贵开始工作?
description "go-server"
author "micah smith"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [!2345]
respawn
script
chdir ~/go/src/print.io/geo/
exec go run main.go
end script