-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templates don't seem to be found #18
Comments
(This is after installing via |
It searches for the templates relative to the binary. When you run go
run main.go the binary ends up in /tmp somewhere, and the templates are
not copied there.
I want to embed the templates in the future, but I'm also lazy and it
works for us 😛
On Fri, May 19, 2017, at 11:42 PM, Ian Smith wrote:
(This is after installing via go get.)
— You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub[1], or mute the
thread[2].>
|
You can use something like this to find the directory corresponding to an import path inside GOPATH, and |
Not the I suspect the same issue affects the contents of |
If I cd to
$GOPATH/src/github.com/flexd/slackinviter/main.go
,slackinviter -h
runs fine; if not,main.go
can't findtemplates/index.tmpl
.The text was updated successfully, but these errors were encountered: