all repos — gomponents @ 83f4798bf8ce1f3c2ddfc8927f25ce72f61a86d1

HTML components in pure Go

Upgrade to golangci/golangci-lint-action@v7 (#254) …and fix lint issues.

Markus Wüstenberg
commit

83f4798bf8ce1f3c2ddfc8927f25ce72f61a86d1

parent

cca973f39cf82a941a48dfaa4932b39bf98ded0d

4 files changed, 10 insertions(+), 3 deletions(-)

changed files
M .github/workflows/ci.yml.github/workflows/ci.yml
@@ -84,6 +84,6 @@ go-version-file: go.mod
check-latest: true - name: Lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v7 with: version: latest
A .golangci.yml
@@ -0,0 +1,7 @@
+version: "2" + +linters: + settings: + staticcheck: + dot-import-whitelist: + - "maragu.dev/gomponents/html"
M README.mdREADME.md
@@ -3,7 +3,7 @@
<img src="logo.png" alt="Logo" width="300" align="right"> [![GoDoc](https://pkg.go.dev/badge/maragu.dev/gomponents)](https://pkg.go.dev/maragu.dev/gomponents) -[![Go](https://github.com/maragudk/gomponents/actions/workflows/ci.yml/badge.svg)](https://github.com/maragudk/gomponents/actions/workflows/ci.yml) +[![CI](https://github.com/maragudk/gomponents/actions/workflows/ci.yml/badge.svg)](https://github.com/maragudk/gomponents/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/maragudk/gomponents/branch/main/graph/badge.svg)](https://codecov.io/gh/maragudk/gomponents) [![Go Report Card](https://goreportcard.com/badge/maragu.dev/gomponents)](https://goreportcard.com/report/maragu.dev/gomponents)
M gomponents.gogomponents.go
@@ -243,7 +243,7 @@
// Rawf creates a text DOM [Node] that just Renders the interpolated and unescaped string format. func Rawf(format string, a ...interface{}) Node { return NodeFunc(func(w io.Writer) error { - _, err := w.Write([]byte(fmt.Sprintf(format, a...))) + _, err := fmt.Fprintf(w, format, a...) return err }) }