...

Text file src/github.com/gorilla/websocket/examples/filewatch/README.md

Documentation: github.com/gorilla/websocket/examples/filewatch

     1# File Watch example.
     2
     3This example sends a file to the browser client for display whenever the file is modified.
     4
     5    $ go get github.com/gorilla/websocket
     6    $ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/filewatch`
     7    $ go run main.go <name of file to watch>
     8    # Open http://localhost:8080/ .
     9    # Modify the file to see it update in the browser.

View as plain text