Skip to content

Releases: Wissance/stringFormatter

Release v1.6.3

Choose a tag to compare

@EvilLord666 EvilLord666 released this 21 Apr 18:00
953362c

Minor : misspell was fixed

Release v1.6.2

Choose a tag to compare

@EvilLord666 EvilLord666 released this 25 Mar 12:50

Added check test cover and go report

Release v1.6.1

Choose a tag to compare

@EvilLord666 EvilLord666 released this 14 Sep 20:43

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

Release v1.6.0

Choose a tag to compare

@EvilLord666 EvilLord666 released this 14 Sep 17:00

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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 26 Jun 18:51
  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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 21 Mar 21:25

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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 18 Mar 19:58

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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 13 Nov 20:12

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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 13 Nov 11:52

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

Choose a tag to compare

@EvilLord666 EvilLord666 released this 13 Nov 08:07

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