Starter repo for doing the Maelstrom challenges in golang.
Install maelstrom's dependencies.
On Mac:
brew install openjdk graphviz gnuplot
On Ubuntu/Debian:
apt install openjdk-17-jdk graphviz gnuplot
Install Maelstrom:
./install_maelstrom.sh
To run your solution, build:
go build
and then run the binary with the maelstrom client:
./maelstrom/maelstrom test -w echo --bin maelstrom-server --node-count 1 --time-limit 10 --log-stderr
The -w
flag specifies the workload to use. The starter code is an implementation of the echo
workload, for others you will need to set this flag accordingly.
You can find docs for the maelstrom client here.