The onefootball backend engineer task
To run the solution file run go run teams.go
To run tests run go test
- Remove the first for loop in
main()
and replace it with something cleaner. - Proper error handling, possibly logging errors instead of just calling
panic()
- Synchronize writes to
roster
for better handling of concurrent writes. - Refactor functions to make them more testable and decrease dependency.
- Write more tests.