# Functions
APIError creates an error instance based on error message and HTTP response returned from API call.
AsMap converts a list of strings with name:value (with optional quotes) into a *map[string]string.
CheckVersion checks the server version of the Span API and emits a warning if there's a version mismatch.
DateFormat formats a date to RFC3339 if the date formatting flag is set.
DumpToTable writes a struct to a table writer with one row for each field.
EllipsisString returns a string no longer than n.
LocalTimeFormat formats a timestamp string into local time.
NewSpanAPIClient creates a new SpanAPI client based on the command line options and/or defaults.
NewTableOutput creates a new table writer with the specified settings.
NewSpanAPIClient creates a new SpanAPI client based on the command line options and/or defaults.
PayloadFormat formats the payload.
ReadCredentials reads credentials from a local file.
RemoveCredentials removes the local credentials file.
RenderTable renders the table according to settings.
TagsToString converts a map of tags into a string with key:value fields.
WriteCredentials writes (JWT) credentials to a local file.
# Constants
ExpectedVersion is the expected API version we'll use.