formatter

package
v0.0.0-...-7e12260 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2025 License: Unlicense Imports: 7 Imported by: 0

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

func FormatBestServer(userLoc api.UserLocation, serverLoc relays.Location, useIPv6 bool) string

FormatBestServer formats user location and best server in a compact 2-line format

func FormatTable

func FormatTable(locations []relays.Location, useIPv6 bool) string

FormatTable formats locations as a table string

func FormatUserLocation

func FormatUserLocation(loc api.UserLocation) string

FormatUserLocation formats user location information

func SortLocationsByLatency

func SortLocationsByLatency(locations []relays.Location)

SortLocationsByLatency sorts locations by latency (nil values last), with stable tie-breakers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL