Skip to content

Commit 57985ad

Browse files
authoredFeb 22, 2025··
Merge pull request #626 from fxamacker/fxamacker/update-to-require-go1.20
go: update go.mod and ci.yml to require go1.20 or newer (was go1.17)
2 parents 2b74e01 + 40e05c4 commit 57985ad

File tree

4 files changed

+2
-64
lines changed

4 files changed

+2
-64
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [macos-latest, ubuntu-latest, windows-latest]
34-
go-version: [1.17, 1.18, 1.19, '1.20', 1.21, 1.22, 1.23]
34+
go-version: ['1.20', 1.21, 1.22, 1.23, 1.24]
3535
steps:
3636
- name: Install Go
3737
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0

‎encode_map.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Faye Amacker. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
//go:build go1.20
5-
64
package cbor
75

86
import (

‎encode_map_go117.go

-60
This file was deleted.

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/fxamacker/cbor/v2
22

3-
go 1.17 // Compiling with go 1.20+ uses new features and optimizations
3+
go 1.20
44

55
require github.com/x448/float16 v0.8.4

0 commit comments

Comments
 (0)
Please sign in to comment.