Discover Packages
github.com/DoNewsCode/core
text
package
Version:
v0.13.0-beta2
Opens a new window with list of versions in this module.
Published: Jul 19, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types Examples type BasePrinter type Printer Sprintf(msg, val)
Documentation
¶
Package text provides utilities to generate textual output.
type BasePrinter struct{}
BasePrinter is the default printer for common use. It uses fmt.Sprintf underneath.
Sprintf formats according to a format specifier and returns the resulting string.
Printer is an interface for i18n and l10n manipulations. For example, an Chinese printer can
translate the message and arguments to its Chinese counterpart.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.