Thanks, after some trial and error I got it to work, and also have a better understanding of the how and why!
@dfc you where right, I just didn’t fully understand what you meant @Jaytn Thanks for clarifying and the link to Todd’s lecture, this will help overcome future problems. And @toddmcleod as always thanks for your code base and quick reply, a lot of examples to work from!
I have had to change the path to:
r.PathPrefix("/GolangTraining/blog/static/css").Handler(http.StripPrefix("/GolangTraining/blog/static/css", http.FileServer(http.Dir("./GolangTraining/blog/static/css"))))
And the CSS path to:
<link href="/GolangTraining/blog/static/css/style.css" type="text/css" rel="stylesheet"/>
And then I changed directory into github.com/jschalkwijk and ran the main.go from there.
Thanks a lot!