FAQ

On Fri, Jul 26, 2013 at 11:22 AM, John-Alan Simmons wrote:
That doesn't seem to work,
That's strange. I've just tripple checked one of our projects - it
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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 7 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 26, '13 at 8:45a
activeJul 26, '13 at 9:56a
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2023 Grokbase