-
Notifications
You must be signed in to change notification settings - Fork 3
Home: StringFormatter
Ushakov Michael edited this page Jul 31, 2023
·
2 revisions
StringFormatter
is a FAST Golang library (module) that helps to build text from templates.
There are following features:
- Any custom text formatting, as a result we getting text
-
stringFormatter.Format(pattern, ...)
<- for making text with variant number of arguments -
stringFormatter.FormatComplex(pattern, dict)
<- for making text usingmap[string]interface{}
where key is using for replace {key} in pattern
- Convert map to string, as a result we getting multilined text
stringFormatter.MapToString(dictionary, keyValueSeparator, lineSeparator)