Go implementation of the famous Toy Robot coding challenge.
Build the container with docker build -t toy-robot-go .
, then:
docker run -it toy-robot-go ./simon-says test
./simon-says test
The following command will generate an executable toyrobot
file inside the container:
docker run -it toy-robot-go ./simon-says build
The following command will generate an executable toyrobot
file:
./simon-says build
docker run -it toy-robot-go go run ./cmd/toyrobot.go resources/exampleA.txt
The executable toyrobot
file requires the absolute path to the file containing the instructions for the Toy Robot as
input, e.g.:
./toyrobot /tmp/example.txt