-
The client should be compiled to a binary that can run in alpine linux.
-
The binary can use arguments (or flags) to specify which server will be connected
-
The client should exit when it receives an OS interrupt signal
-
Implement error handling logic and don't just panic
-
Write some unit tests
-
Do the following actions (in order) after the client connects to the server
$ go get -u https://github.com/yhsiang/soupclient
$ go run main.go
Make sure your golang with cross compile support and choose your target platform.
- Linux
$ make build-linux
- MacOS
$ make build-darwin-amd64
- Windows
$ make build-windows-amd64
You need build executable first then use the below command.
$ make docker
Please run test first to make sure all's fine in your environment.
$ make test