On Fri, Jul 26, 2013 at 11:22 AM, John-Alan Simmons wrote:
That doesn't seem to work,
That doesn't seem to work,
really works here.
Excerpts:
http.Handle("/scripts/", http.FileServer(http.Dir("")))
...
http.Handle("/css/", http.FileServer(http.Dir("")))
http.Handle("/", http.HandlerFunc(home))
log.Printf("Starting the web service @ %s\n", *oAddr)
if err := http.ListenAndServe(*oAddr, nil); err != nil {
log.Fatal(err)
}
Elsewhere:
<script src="scripts/codemirror/mode/javascript/javascript.js"></script>
<script src="scripts/codemirror/mode/css/css.js"></script>
<script src="scripts/codemirror/mode/htmlmixed/htmlmixed.js"></script>
-j
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.