I've just starting learning go and I'm noodling around with web apps using the Google app engine. I've worked through the guestbook tutorial, and have now started my own project. The go part compiles just fine, but there's something strange happening when the template tries to render. It's able to render all the HTML, but I've added both CSS and JS, and the template is somehow reading in itself instead of the respective CSS and JS files. It's bizarre. I'm not sure it's a path problem (I would expect a 404).
This is the error I'm getting in the console:
Uncaught SyntaxError: Unexpected token <
And when I view the resource it's picking up for the js file, it's identical to the template. I've placed my js and css relative to the template folder, so I would expect it would find it:
app/
- templates/
- css/
- js/
So my script is called thusly in the template:
<script src="../js/main.js"></script>
How should I be structuring my JS and CSS resources (and later, images, and SASS/LESS)?
Edit
This is what I see in the source for Chrome devtools: