Skip to content

Commit

Permalink
Fix GH actions for Go versions, drop 1.14
Browse files Browse the repository at this point in the history
Also fix a lint-warning, which ensures the tests have something to test.
  • Loading branch information
thockin committed Jan 27, 2022
1 parent eb02c45 commit e438a74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Expand Up @@ -6,14 +6,14 @@ jobs:
test:
strategy:
matrix:
go-versions: [ 1.14.x, 1.15.x, 1.16.x ]
version: [ '1.15', '1.16', '1.17' ]
platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
Expand Down
3 changes: 2 additions & 1 deletion funcr/funcr.go
Expand Up @@ -408,8 +408,9 @@ func (f Formatter) prettyWithFlags(value interface{}, flags uint32, depth int) s
if i > 0 {
buf.WriteByte(',')
}
k, _ := v[i].(string) // sanitize() above means no need to check success
// arbitrary keys might need escaping
buf.WriteString(prettyString(v[i].(string)))
buf.WriteString(prettyString(k))
buf.WriteByte(':')
buf.WriteString(f.prettyWithFlags(v[i+1], 0, depth+1))
}
Expand Down

0 comments on commit e438a74

Please sign in to comment.