I am trying to deploy a simple go lang server on heroku.I have managed to get it running. But I am wondering if my utilisation of godep is proper.
Here is the Godeps.json I have produced.
{
"ImportPath": ".",
"GoVersion": "go1.5",
"Packages": [
"./..."
],
"Deps": [
{
"ImportPath": "github.com/kevinlg/trendee-api",
"Rev": "6acde53081a273d4caedf113688e1ab83854c877"
}
]
}
I am wondering why "ImportPath":"." and not github.com/kevinlg/trendee-api instead of having it as a dependency ?
When I check the Heroku example or the Godeps.json for godep I can see
"ImportPath": "github.com/heroku/go-getting-started",
or
"ImportPath": "github.com/tools/godep
I have been able to get the server running and deployed on heroku.
Here is my project folder structure
trendee-api /(GOPATH)
bin/
Godeps/
pkg/
src/
github.com/
kevinlg/
trendee-api/
I have used the following commands.
godep save -r ./...
go install github.com/kevinlg/trendee-api
Thanks in advance for the help