diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 61509e6..01650dd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,17 +7,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go: [1.12, 1.13] + go: [1.12, 1.13, 1.14, 1.15, 1.16, 1.17] os: [ubuntu-latest, windows-latest, macos-latest] steps: - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v1 + uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Get dependencies run: go mod download diff --git a/decode.go b/decode.go index 33ea47d..16a06b9 100644 --- a/decode.go +++ b/decode.go @@ -838,5 +838,5 @@ var ( float64Type = reflect.TypeOf(float64(3.14)) stringType = reflect.TypeOf("") charType = reflect.TypeOf(Char(0)) - highPrecNumType = reflect.TypeOf(HighPrecNumber(0)) + highPrecNumType = reflect.TypeOf(HighPrecNumber("")) ) diff --git a/go.mod b/go.mod index c34946a..b8288f8 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/jmank88/ubjson go 1.12 -require github.com/pkg/errors v0.8.0 +require github.com/pkg/errors v0.8.1 diff --git a/go.sum b/go.sum index 3dfe462..f29ab35 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=