File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
2
2
// Use of this source code is governed by a MIT license found in the LICENSE file.
3
3
4
+ //go:build go1.24
5
+
4
6
package codec
5
7
6
8
// bench_test is the "helper" file for all benchmarking tests.
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
2
2
// Use of this source code is governed by a MIT license found in the LICENSE file.
3
3
4
+ //go:build go1.24
5
+
4
6
package codec
5
7
6
8
import (
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
2
2
// Use of this source code is governed by a MIT license found in the LICENSE file.
3
3
4
- //go:build !safe && !codec.safe && !appengine && go1.9
5
-
6
- // minimum of go 1.9 is needed, as that is the minimum for all features and linked functions we need
7
- // - typedmemclr was introduced in go 1.8
8
- // - mapassign_fastXXX was introduced in go 1.9
4
+ //go:build !safe && !codec.safe && !appengine && go1.21
5
+
6
+ // minimum of go 1.21 is needed, as that is the minimum for all features and linked functions we need
7
+ // - typedmemclr : go1.8
8
+ // - mapassign_fastXXX: go1.9
9
+ // - clear was added in go1.21
10
+ // - unsafe.String(Data): go1.20
11
+ // - unsafe.Add: go1.17
12
+ // - generics/any: go1.18
9
13
// etc
10
14
11
15
package codec
You can’t perform that action at this time.
0 commit comments