github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/gorilla/websocket/examples/filewatch/README.md (about)

     1  # File Watch example.
     2  
     3  This 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.