From 8518a6cd915cb2afe192e01bfd12fb8345642c82 Mon Sep 17 00:00:00 2001 From: Ushakov Michael Date: Wed, 25 Mar 2026 15:11:48 +0500 Subject: [PATCH 1/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index fb19d41..390a369 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ 3. Use for **template-based src code generator** 4. Other text proccessing +[Go Report Card](https://goreportcard.com/report/github.com/wissance/stringFormatter) + + ## ✨ 1 Features 🔤 Flexible Syntax: Supports both indexed / positional (`{0}`) and named (`{user}`) *placeholders* in templates. From d4c34b3478d35926830c67f3c2077f6055111820 Mon Sep 17 00:00:00 2001 From: Ushakov Michale Date: Wed, 25 Mar 2026 17:29:44 +0500 Subject: [PATCH 2/7] add coverage && integrations --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7509ae7..71de403 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,14 @@ jobs: with: go-version: '1.21' - name: Test all - run: go version && go mod tidy && go test -v ./... + run: go version && go mod tidy && go test -v -covermode=count -coverprofile=coverage.out ./... + - name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + # If your repo is private, uncomment the next line and set the secret + # coveralls-token: ${{ secrets.COVERALLS_REPO_TOKEN }} + path-to-lcov: coverage.out #all-tests-windows: # name: Run all tests on windows From effc8f9cdadcb926b621ce238749afec8fa84be8 Mon Sep 17 00:00:00 2001 From: Ushakov Michale Date: Wed, 25 Mar 2026 17:35:36 +0500 Subject: [PATCH 3/7] Badges were added --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 390a369..4b091b3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/wissance/stringFormatter?style=plastic) ![GitHub issues](https://img.shields.io/github/issues/wissance/stringFormatter?style=plastic) ![GitHub Release Date](https://img.shields.io/github/release-date/wissance/stringFormatter) -[![Wissance.WebApiToolkit CI](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml) +[![Wissance.StringFormatter CI](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml) +[![Go Report Card](https://goreportcard.com/badge/github.com/wissance/stringFormatter)](https://goreportcard.com/report/github.com/wissance/stringFormatter) +![Coverage](https://coveralls.io/repos/github/wissance/stringFormatter/badge.svg?branch=master) ![String Formatter: a convenient string formatting tool](img/sf_logo_sm.png) From fb03db57e3408f068c17cb7e898e89dd6fcc6081 Mon Sep 17 00:00:00 2001 From: Ushakov Michale Date: Wed, 25 Mar 2026 17:42:24 +0500 Subject: [PATCH 4/7] readme update (push cover count) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b091b3..5d7daf2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ 3. Use for **template-based src code generator** 4. Other text proccessing -[Go Report Card](https://goreportcard.com/report/github.com/wissance/stringFormatter) +Other important resources: +* [Go Report Card A+](https://goreportcard.com/report/github.com/wissance/stringFormatter) +* [Coverage > 80%](https://coveralls.io/github/Wissance/stringFormatter) ## ✨ 1 Features From c6b7742fa7ef898dd6c278697ba10ff14748a8a3 Mon Sep 17 00:00:00 2001 From: Ushakov Michale Date: Wed, 25 Mar 2026 17:45:43 +0500 Subject: [PATCH 5/7] badge was replaced --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d7daf2..8dab113 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![GitHub Release Date](https://img.shields.io/github/release-date/wissance/stringFormatter) [![Wissance.StringFormatter CI](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/wissance/stringFormatter)](https://goreportcard.com/report/github.com/wissance/stringFormatter) -![Coverage](https://coveralls.io/repos/github/wissance/stringFormatter/badge.svg?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/Wissance/stringFormatter/badge.svg?branch=master)](https://coveralls.io/github/Wissance/stringFormatter?branch=master) ![String Formatter: a convenient string formatting tool](img/sf_logo_sm.png) From 33919f4461e7ff4892e607a48f27a55269604d2e Mon Sep 17 00:00:00 2001 From: Ushakov Michale Date: Wed, 25 Mar 2026 18:04:52 +0500 Subject: [PATCH 6/7] add awesome badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8dab113..fb88c9d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Wissance/StringFormatter +[![Awesome Package](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go) ![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/wissance/stringFormatter?style=plastic) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/wissance/stringFormatter?style=plastic) ![GitHub issues](https://img.shields.io/github/issues/wissance/stringFormatter?style=plastic) From 953362c110798a7fc90a216a76633ed469ba0151 Mon Sep 17 00:00:00 2001 From: Mukunda Rao Katta Date: Tue, 21 Apr 2026 10:56:32 -0700 Subject: [PATCH 7/7] docs(maptostring): fix 'guranteed' -> 'guaranteed' comment typo (#29) Closes #28 --- maptostring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maptostring.go b/maptostring.go index d16d665..6fb80f5 100644 --- a/maptostring.go +++ b/maptostring.go @@ -12,7 +12,7 @@ const ( // MapToString - format map keys and values according to format, joining parts with separator. // Format should contain key and value placeholders which will be used for formatting, e.g. // "{key} : {value}", or "{value}", or "{key} => {value}". -// Parts order in resulting string is not guranteed. +// Parts order in resulting string is not guaranteed. func MapToString[ K string | int | uint | int32 | int64 | uint32 | uint64, V any,