make
or cd src/ && go build && mv gochat ..
As you are probably here for reconnaissance reasons for your own project here's a quick overview of the structure:
pages
-> html pagesscripts
-> js files where chat.js is the "heavy-lifter" which actually implements the websocket chat logicstatic
-> icon, stylesheet for pagessrc/api
-> the fundament of backend logic, authorization, database and websocket handling,all necessary structs, constantssrc/log
-> a custom loggersrc/page
-> a shorcut function for handling html templatessrc/server
-> the main server struct that glues everything together. For a high-level inspection - refer theresrc/main.go
-> parse command line flags, set up logging and leave the rest for the server
GPLv3