Chat Platform in Go
This code was adapted from chatper 2 Go Programming Blueprints Book by Mat Ryer. The code allows you to type in the base URL (which right now is on localhost:8080') + /chat/ + any string and it will open a new chat room for that topic if one doesn't already exist'
- Browse the Source code
Notes:
- Page 53:
w.Header.Setshould bew.Header().SetsinceHeaderis a function onhttp.ResponseWriter.
