File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ You will also need to install GopherJS with `go get github.com/gopherjs`.
55
55
Then run ` go generate ./... ` to compile the templates and compile the go code
56
56
to javascript.
57
57
58
- Finally, serve the project directory with ` python -m SimpleHTTPServer ` or similar
59
- and visit [ localhost:8000] ( http://localhost:8000 ) in your browser.
58
+ Finally, serve the project directory with ` go run serve.go ` and visit
59
+ [ localhost:8000] ( http://localhost:8000 ) in your browser.
60
60
61
61
62
62
## Credit
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ import (
4
+ "log"
5
+ "net/http"
6
+ )
7
+
8
+ func main () {
9
+ port := ":8000"
10
+ log .Println ("Serving on http://localhost" + port )
11
+ http .ListenAndServe (port , http .FileServer (http .Dir ("." )))
12
+ }
You can’t perform that action at this time.
0 commit comments