From 9b9653e8ce3e644130b0412b9236c1d3e07a5017 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Wed, 14 Aug 2024 22:47:40 +0200 Subject: [PATCH] Bump GitHub workflow actions --- .github/workflows/go.yml | 10 +++++----- color.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a133d55..133cda1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: go-version: '>=1.22.0' - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - name: Run go mod tidy run: | set -e @@ -39,9 +39,9 @@ jobs: run: "go vet ./..." - name: Staticcheck - uses: dominikh/staticcheck-action@v1.3.0 + uses: dominikh/staticcheck-action@v1.3.1 with: - version: "2023.1.7" + version: "2024.1.1" install-go: false - name: Build diff --git a/color.go b/color.go index 81094e8..b1b8ab8 100644 --- a/color.go +++ b/color.go @@ -401,7 +401,7 @@ func (c *Color) format() string { func (c *Color) unformat() string { //return fmt.Sprintf("%s[%dm", escape, Reset) - //for each element in sequence let's use the speficic reset escape, ou the generic one if not found + //for each element in sequence let's use the specific reset escape, or the generic one if not found format := make([]string, len(c.params)) for i, v := range c.params { format[i] = strconv.Itoa(int(Reset))