Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Printer ¶
Printer returns a pre-configured message.Printer. The printer can execute format statements that fix numbers for the chosen language.
func Setup ¶
func Setup() error
Setup a message.Printer for the user or default specified language.
Example ¶
// Setup() tries all -language flag values to find one that works. if Setup() == nil { // No error, language configured. // Format a number using the language "printer". fmt.Println(Printer().Sprintf("%d", 1_234_567_890))
Output: 1,234,567,890
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.