First project in Go done for study purpose
go get -u github.com/satori/go.uuid
- Build
go build -o ./build/server ./server/main.go ./server/server.go
- Run server
./build/server
Currently port 8080 is fixed in code (plans to add port via arguments)
- q or quit: shutdown server and send it to all clients
- users: list of connected users
- debug: toggle debug mode (prints all receiving messages to console)
- Build
go build -o ./build/client ./client/main.go
- Run
./build/client
Currently localhost:8080 is fixed in code (plans to add ip:port via arguments)
- :q or :quit: disconnect from server