Releases: Wissance/stringFormatter
Releases · Wissance/stringFormatter
Release v1.6.3
Minor : misspell was fixed
Release v1.6.2
Added check test cover and go report
Release v1.6.1
SAST and automatic test run on push to develop and | or master branch were implemented during this micro-release
Release v1.6.0
This release contains the following
- Func to set code style (
snake,kebab, orcamel) - Appropriate format (
c/C`` to be used inFormatandFormatComplex` 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
- Fixed Multiple curly brackets processing, it really works like
string.Format()inC# - Template processing implemented through state machine
Release v1.4.1
Release v1.4.0
Added:
- Utility function
SliceToStringthat allows to convert string of any type and mixed items into string with selectable separator between them Lformat 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 lineThis is a list(slice) test: s1-s2-s3. Such option available in bothFormatandFormatComplexmethods- According to benchmark tests formatting slice via
sffrom 50 to 250 percent faster then withfmt

Release v1.3.0
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
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
Fixed issue with open bracket at the end i.e. previously in the line type serviceHealth struct { the last { disappeared, now it was fixed
