Skip to content

Commit 1e6bfca

Browse files
authored
feat: support go1.23 (#66)
* chore: support go1.23 * update sonic * opt: recover to print more context * opt: make more panic msg * update mod * update ci * add go1.23 ci * fix: checkptr * remove all API docs onto go.dev * update
1 parent 7f139dd commit 1e6bfca

File tree

24 files changed

+380
-5351
lines changed

24 files changed

+380
-5351
lines changed

.github/workflows/go_latest_test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Go Latest
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
os: [arm, X64]
10+
runs-on: ${{ matrix.os }}
11+
steps:
12+
- name: Clear repository
13+
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
14+
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.22.4
21+
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: |
27+
${{ runner.os }}-go-
28+
29+
- name: build go
30+
run: sh ./scripts/go_latest.sh go1.23
31+
continue-on-error: true
32+
33+
- name: test
34+
run: |
35+
PWD=$(pwd)
36+
export GOROOT=$PWD/go1.23
37+
export PATH=$GOROOT/bin:$PATH
38+
go version
39+
go test -race github.com/cloudwego/dynamicgo/thrift
40+
go test -race github.com/cloudwego/dynamicgo/thrift/annotation
41+
go test -race github.com/cloudwego/dynamicgo/thrift/generic
42+
go test -race github.com/cloudwego/dynamicgo/conv/t2j
43+
go test -race github.com/cloudwego/dynamicgo/http
44+
go test -race github.com/cloudwego/dynamicgo/internal/json
45+
go test -race github.com/cloudwego/dynamicgo/conv/j2p
46+
go test -race github.com/cloudwego/dynamicgo/conv/p2j
47+
go test -race github.com/cloudwego/dynamicgo/proto/generic
48+

.github/workflows/push-check-linux-compat.yml renamed to .github/workflows/push-check-compat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
go-version: [1.17.x, 1.20.x]
9+
go-version: [1.17.x, 1.22.x]
1010
os: [ARM64, X64]
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- uses: actions/checkout@v2
1414

1515
- name: Set up Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Dynamic-Go for Thrift protocol: [introduction.md](introduction.md).
77
Dynamic-Go for Protobuf protocol: [introduction.md](./proto/INTRODUCTION.md)
88

99
## Usage
10+
11+
[![GoDoc](https://godoc.org/github.com/cloudwego/dynamicgo?status.svg)](https://pkg.go.dev/github.com/cloudwego/dynamicgo?tab=doc)
12+
1013
### thrift
1114
Thrift IDL parser and message operators. It can parse thrift IDL in runtime and handle thrift data in generic way.
1215
[DOC](thrift/README.md)

conv/README.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

conv/j2p/README.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)