1
0
mirror of https://github.com/fatih/color.git synced 2024-11-24 08:02:14 +02:00

Merge pull request #235 from deining/fix-typo

Bump GitHub workflow actions
This commit is contained in:
Fatih Arslan 2024-08-15 09:26:24 +03:00 committed by GitHub
commit cb154c0218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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))