package
0.0.0-20240710215349-97bfe1c12a25
Repository: https://github.com/allensg/codingproblems.git
Documentation: pkg.go.dev

# Functions

Distance returns the distance between two Positions.
NewServerFromFile reads an appropriately-formatted CSV of ping data and returns a new Server initialized with the loaded data.
SecondsBetween determines the number of seconds between two given Pings.
SubDistance returns the distance covered by the specified pings over a given time range.
TotalDistance returns the total distance covered by the specified pings.

# Structs

Ping represents a vehicle's position at a given timestamp.
Position represents an x, y coordinate in a given warehouse.
Server implements the warehouse server APIs.
Vehicle represents a named vehicle with a sequence of pings.