diff --git a/html5/canvas/mdn-tutorial.html b/html5/canvas/mdn-tutorial.html new file mode 100644 index 0000000..e2d332e --- /dev/null +++ b/html5/canvas/mdn-tutorial.html @@ -0,0 +1,33 @@ + + + + MDN Canvas Tutorial + + + + + hammer down + + + + diff --git a/html5/server.go b/html5/server.go new file mode 100644 index 0000000..8ba58e1 --- /dev/null +++ b/html5/server.go @@ -0,0 +1,22 @@ +// I wanted to practice, plus maaaaaybe I'll want something dynamic on the +// server side (???) +package main + +import ( + "flag" + "fmt" + "net/http" +) + +var ( + docroot = flag.String("d", ".", "docroot for server") + addr = flag.String("a", ":8990", "address on which to listen") +) + +func main() { + flag.Parse() + + http.Handle("/", http.FileServer(http.Dir(*docroot))) + fmt.Printf("Serving %q on %v\n", *docroot, *addr) + http.ListenAndServe(*addr, nil) +}