Skip to content

Home: StringFormatter

Ushakov Michael edited this page Jul 31, 2023 · 2 revisions

1. Features

StringFormatter is a FAST Golang library (module) that helps to build text from templates.

There are following features:

  1. 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 using map[string]interface{} where key is using for replace {key} in pattern
  1. Convert map to string, as a result we getting multilined text
  • stringFormatter.MapToString(dictionary, keyValueSeparator, lineSeparator)
Clone this wiki locally