Here are 3 approaches to implement a simple web chat on Go:
This is example of implementation a simple WebSocket chat. The application uses Gorilla WebSocket package.
For running the example you should have working Go development environment. You can start the server using the following commands:
$ go get github.com/ss-dev/go-chat-websocket
$ cd `go list -f '{{.Dir}}' github.com/ss-dev/go-chat-websocket`
$ go run app.go
To use the example, open http://localhost:8080/ in your browser.