Skip to content

Releases: Wissance/stringFormatter

Release v1.6.3

21 Apr 18:00
953362c

Choose a tag to compare

Minor : misspell was fixed

Release v1.6.2

25 Mar 12:50

Choose a tag to compare

Added check test cover and go report

Release v1.6.1

14 Sep 20:43

Choose a tag to compare

SAST and automatic test run on push to develop and | or master branch were implemented during this micro-release

Release v1.6.0

14 Sep 17:00

Choose a tag to compare

This release contains the following

  1. Func to set code style (snake, kebab, or camel)
  2. Appropriate format (c/C`` to be used in FormatandFormatComplex` functions:
    • {0:c:snake}, myFunc outputs -> my_func
    • {0:c:Snake}, myFunc outputs -> My_func
    • {0:c:SNAKE}, read-timeout outputs -> READ_TIMEOUT
    • {0:c:camel}, my_variable outputs -> myVariable
    • {0:c:Camel}, my_variable outputs -> MyVariable

Release v1.5.0

26 Jun 18:51

Choose a tag to compare

  1. Fixed Multiple curly brackets processing, it really works like string.Format() in C#
  2. Template processing implemented through state machine

Release v1.4.1

21 Mar 21:25

Choose a tag to compare

Finally we could pass typed slice ([]int, []string, []float64 and other standard typs) not only []any{} if Format and FormatComplex methods with {0:L} format specifier and typed is rather fast (see picture below):
image

Release v1.4.0

18 Mar 19:58

Choose a tag to compare

Added:

  1. Utility function SliceToString that allows to convert string of any type and mixed items into string with selectable separator between them
  2. L format option to add slices in formatting string i.e. "This is a list(slice) test: {0:L-}", with the slice []any{"s1", "s2", "s3"} produces the following line This is a list(slice) test: s1-s2-s3 . Such option available in both Format and FormatComplex methods
  3. According to benchmark tests formatting slice via sf from 50 to 250 percent faster then with fmt
    slice2str_benchmarks

Release v1.3.0

13 Nov 20:12

Choose a tag to compare

Better source code processing line by line, extended number of tests, fixed behavior with empty brackets {} and non closed pair of brackets

Release v1.2.2

13 Nov 11:52

Choose a tag to compare

Fixed case with line processing when at the end of line - { at the end of line when on the way we meet {} i.e.

func afterHandle(respWriter *http.ResponseWriter, statusCode int, data interface{}) {

Release v1.2.1

13 Nov 08:07

Choose a tag to compare

Fixed issue with open bracket at the end i.e. previously in the line type serviceHealth struct { the last { disappeared, now it was fixed