Documentation
¶
Overview ¶
Package formatter provides functionality for formatting and displaying server location data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBestServer ¶
FormatBestServer formats user location and best server in a compact 2-line format
func FormatTable ¶
FormatTable formats locations as a table string
func FormatUserLocation ¶
func FormatUserLocation(loc api.UserLocation) string
FormatUserLocation formats user location information
func SortLocationsByLatency ¶
SortLocationsByLatency sorts locations by latency (nil values last), with stable tie-breakers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.