2020-03-16 00:11:33 +11:00
2020-03-16 00:11:20 +11:00
2020-03-14 22:48:29 +11:00
2020-03-15 23:50:00 +11:00
2020-03-15 23:50:00 +11:00
2020-03-15 19:53:42 +11:00
2020-03-16 00:11:20 +11:00
2020-03-15 19:53:42 +11:00
2020-03-15 23:50:00 +11:00
2020-03-15 23:50:00 +11:00
2020-03-16 00:11:33 +11:00

Zombie

How to run application

docker-compose run app

Or if you have Go v1.13 installed locally, then run

go run cmd/main.go

How to run tests

docker-compose run app go test ./... -cover

Where to start to read the code

Please read the code from the entry point cmd/main.go

Assumptions

  • All the input data is valid

Highlights

  • Used TableDrivenTests
  • Used interface and map to model the command part to avoid if else checks
  • Built a First-In-First-Out structure nextZombie in application to represent the next zombie to run.
  • Had docker compose built in, you don't need to have Go installed locally. One command to bring up the whole application.
S
Description
No description provided
Readme
40 KiB
Languages
Go 100%