Simple Chat is an impractical chat application written in Go and Knockout.JS with hard-coded users.
Install and set up your go environment. You will need to add go/bin directory to your PATH. Create your workspace directory, $HOME/go. (If you'd like to use a different directory, you will need to set the GOPATH environment variable.)
The following command will donwload simple_chat and install it in $GOPATH/src/github.com/mngibson:
$ go get github.com/mngibson/simple_chat
$ cd $GOPATH/src/github.com/mngibson/simple_chat
$ go run main.go
Server starting on port: 8080
Go to http://localhost:8080 in two or more browser tabs. Choose a name under "Who are you?" to signify what name you'll be sending messges under. Chose a name under "Who are you chatting with?" to signify who you will be sending messages to. Use the "Send" button and text input to send messages.
simple_chat uses Knockout for simple reactivity, Bootstrap for layout and css on the frontend. The backend is written in Go and uses Gorilla Mux for routing.
Messages are stored using go-cache, an in-memory key:value store similar to Memcached. Messages will not be preserved between server starts.