I've just started working with GO and am creating a simple web interface. I have a working GO server, an HTML template called "survey.gtpl" which is served up by the server as expected, and a logo I would like displayed on the web page. No matter where I place the image within the workspace directory structure or what I put as the src path, the image will not load.
Here is the current directory structure:
+ workspace
+ bin
server.exe
+ src
+ github.com
+ cwrighta70
+ web
server.go
LogoColor.jpg
survey.gtpl
And here is the path within the "survey.gtpl" template"
<img src = "LogoColor.jpg" alt="Logo" width="789px" height="182px">
I've tried putting the image in it's own directory within the workspace, like workspace/img/LogoColor.jpg
. I've also tried putting it in with the web server executable in workspace/bin/LogoColor.jpg
. All I get in the browser is the Alt text.
Any help is greatly appreciated!
- Chris