Wissance StringFormatter Versions Save

A set of tools to manipulate text, i.e. making text from templates in C#/Python way is faster than fmt.Sprintf

v1.2.0

4 months ago

stringFormatter now supports arg formatting and it FASTER then fmt, formatting looks as follows:

  1. Bin number formatting
    • {0:B}, 15 outputs -> 1111
    • {0:B8}, 15 outputs -> 00001111
  2. Hex number formatting
    • {0:X}, 250 outputs -> fa
    • {0:X4}, 250 outputs -> 00fa
  3. Oct number formatting
    • {0:o}, 11 outputs -> 14
  4. Float point number formatting
    • {0:E2}, 191.0478 outputs -> 1.91e+02
    • {0:F}, 10.4567890 outputs -> 10.456789
    • {0:F4}, 10.4567890 outputs -> 10.4568
    • {0:F8}, 10.4567890 outputs -> 10.45678900
  5. Percentage output
    • {0:P100}, 12 outputs -> 12%

v1.1.1

9 months ago

StringFormatter was refactored and simplified (#13)

v1.1.0

1 year ago

We added new set of utilities:

  • 🎯 Map conversion to single line - MapToStr function

v1.0.5

1 year ago

Proper handle of double curly brackets (having both cases in tests when {{0}} converts to {0} and when we deal with complicated json)

v1.0.4

1 year ago

Forgot to fix bug (#10 ) for FormatComplex in 1.0.3, fixed there

v1.0.3

1 year ago

Fixed issue with nested curly brackets inside text

v1.0.2

1 year ago

Better performance than in 1.0.1

v1.0.1

1 year ago

Key features:

  • Format and FormatComplex functions Performance became better than performance of fmt.Sprintf
  • Properly handling double curly brackets (like in C#)

v1.0.0

1 year ago

Key features:

  • Format and FormatComplex functions Performance became better than fmt.Sprintf
  • Properly handling double curly brackets (like in C#)

WRONG MODULE NAME, use v1.0.1

v0.2.2

1 year ago

Created go.mod file