Skip to content

Commit

Permalink
Merge pull request #135 from thockin/fix-actions-go-versions
Browse files Browse the repository at this point in the history
Fix lint error and tests for Go versions
  • Loading branch information
pohly authored Jan 27, 2022
2 parents e2fd555 + e438a74 commit ec7c16c
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ec7c16c

Please sign in to comment.