Skip to content

Commit

Permalink
feat: support go1.23 (#66)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
AsterDY authored Jul 31, 2024
1 parent 7f139dd commit 1e6bfca
Show file tree
Hide file tree
Showing 24 changed files with 380 additions and 5,351 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/go_latest_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Go Latest

on: push

jobs:
build:
strategy:
matrix:
os: [arm, X64]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE

- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.4

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: build go
run: sh ./scripts/go_latest.sh go1.23
continue-on-error: true

- name: test
run: |
PWD=$(pwd)
export GOROOT=$PWD/go1.23
export PATH=$GOROOT/bin:$PATH
go version
go test -race github.com/cloudwego/dynamicgo/thrift
go test -race github.com/cloudwego/dynamicgo/thrift/annotation
go test -race github.com/cloudwego/dynamicgo/thrift/generic
go test -race github.com/cloudwego/dynamicgo/conv/t2j
go test -race github.com/cloudwego/dynamicgo/http
go test -race github.com/cloudwego/dynamicgo/internal/json
go test -race github.com/cloudwego/dynamicgo/conv/j2p
go test -race github.com/cloudwego/dynamicgo/conv/p2j
go test -race github.com/cloudwego/dynamicgo/proto/generic
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ jobs:
build:
strategy:
matrix:
go-version: [1.17.x, 1.20.x]
go-version: [1.17.x, 1.22.x]
os: [ARM64, X64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Dynamic-Go for Thrift protocol: [introduction.md](introduction.md).
Dynamic-Go for Protobuf protocol: [introduction.md](./proto/INTRODUCTION.md)

## Usage

[![GoDoc](https://godoc.org/github.com/cloudwego/dynamicgo?status.svg)](https://pkg.go.dev/github.com/cloudwego/dynamicgo?tab=doc)

### thrift
Thrift IDL parser and message operators. It can parse thrift IDL in runtime and handle thrift data in generic way.
[DOC](thrift/README.md)
Expand Down
113 changes: 0 additions & 113 deletions conv/README.md

This file was deleted.

122 changes: 0 additions & 122 deletions conv/j2p/README.md

This file was deleted.

Loading

0 comments on commit 1e6bfca

Please sign in to comment.