Skip to content

Commit b5604fc

Browse files
aurcclaude
andauthored
Update Go version to 1.26 (#31)
- Update go.mod to Go 1.26 - Update GitHub Actions workflows to Go 1.26 - Fix fmt.Sprintf format string checks (Go 1.26 stricter validation) - All tests passing Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e57c0c5 commit b5604fc

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v2
2121
with:
22-
go-version: 1.23
22+
go-version: 1.26
2323

2424
- name: Build
2525
run: go build -v ./...

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v2
1515
with:
16-
go-version: 1.23
16+
go-version: 1.26
1717

1818
# - name: Install dependencies
1919
# run: |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aurc/loggo
22

3-
go 1.23
3+
go 1.26
44

55
require (
66
cloud.google.com/go/logging v1.11.0

internal/loggo/splash_screen.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@ func (t *SplashScreen) PrintCanvasAsColorString(foreground, shade rune, foregrou
156156
switch t.canvas[row][col] {
157157
case foreground:
158158
if prev != fg {
159-
sb.WriteString(fmt.Sprintf(foregroundColor))
159+
sb.WriteString(foregroundColor)
160160
prev = fg
161161
}
162162
case shade:
163163
if prev != sh {
164-
sb.WriteString(fmt.Sprintf(shadeColor))
164+
sb.WriteString(shadeColor)
165165
prev = sh
166166
}
167167
default:
168168
if prev != bg {
169-
sb.WriteString(fmt.Sprintf(backgroundColor))
169+
sb.WriteString(backgroundColor)
170170
prev = bg
171171
}
172172
}

0 commit comments

Comments
 (0)