package
2.1.0+incompatible
Repository: https://github.com/jexia/semaphore.git
Documentation: pkg.go.dev

# Functions

FormatJSON prints provided argument in a JSON format.
FormatWithFunc does common operations (e.g.
Function formats and returns a string without printing it anywhere.
NewRadix creates new radix tree based Formatter registry.
NewScanner creates a stateful scanner with provided formatter detector.

# Structs

Float formatter.
Int formatter.
JSON formatter.
Precision is a token which describes the precision and used to create a verb.
Radix tree based implementation of Formatter registry.
String formatter.
Verb is a token that is used to print a single input argument.

# Interfaces

Constructor is a formatter constructor.
FormatterDetector detects formatter (if possible) from provided input.
Printer compiles the output using argument values.
Scanner scans provided string splitting it up by tokens.
Token represents one of the available tokens.
TypeChecker determines if the provided type can be formatted by the formatter.

# Type aliases

Constant is a token that does not need any formatting.
Formatter is a function to be called in order to format the argument value.
Tokens is a list of tokens (implements Printer interface).
ValueFormatter formats a scalar value with provided precision.