{"modulePath":"github.com/DoNewsCode/core","version":"v0.12.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package text\n\nPackage text provides utilities to generate textual output.\n\n## Types\n\n```go\ntype BasePrinter struct{}\n```\nBasePrinter is the default printer for common use. It uses fmt.Sprintf underneath.\n\n```go\nfunc (BasePrinter) Sprintf(msg string, val ...interface{}) string\n```\nSprintf formats according to a format specifier and returns the resulting string.\n\n```go\ntype Printer interface {\n\tSprintf(msg string, val ...interface{}) string\n}\n```\nPrinter is an interface for i18n and l10n manipulations. For example, an Chinese printer can translate the message and arguments to its Chinese counterpart.\n\n","path":"github.com/DoNewsCode/core/text","name":"text","synopsis":"Package text provides utilities to generate textual output.","isRedistributable":true}
