Skip to content

Playing with GO and JSON while exploring Go best practices

Notifications You must be signed in to change notification settings

clobee/customer-list-go

Repository files navigation

The Test

BCH compliance CircleCI

1. Technical problem

We have some customer records in a text file (customers.txt) -- one customer per line, JSON lines formatted. We want to invite any customer within 100km of our Dublin office for some food and drinks on us. Write a program that will read the full list of customers and output the names and user ids of matching customers (within 100km), sorted by User ID (ascending).

You must use the first formula from this article https://en.wikipedia.org/wiki/Great-circle_distance to calculate distance. 

The GPS coordinates for our office are 53.339428, -6.257664.

Application

test the program: make test run the program: make run

About

Playing with GO and JSON while exploring Go best practices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published