chore: 升级第三方依赖并现代化反射与切片 API - #39
Merged
Merged
Conversation
helays
commented
Sep 28, 2026
Owner
- go.mod: 批量升级依赖到最新版本(sarama v1.61.1、etcd v3.7.2、quic-go v0.63.0、 minio-go v7.3.0、excelize v2.11.0、go-redis v9.22.0、golang.org/x/* 等),go 指令细化为 1.26.0
- tools/any2any.go: reflect.Ptr 改用 reflect.Pointer,reflect.TypeOf 改用泛型 reflect.TypeFor, 嵌套结构体递归处复用已声明的 err 变量
- tools/array.go: 分块循环改用 range over int 与内置 min,精简 CutStrSlice2Slice 的越界分支
- go.mod: 批量升级依赖到最新版本(sarama v1.61.1、etcd v3.7.2、quic-go v0.63.0、 minio-go v7.3.0、excelize v2.11.0、go-redis v9.22.0、golang.org/x/* 等),go 指令细化为 1.26.0 - tools/any2any.go: reflect.Ptr 改用 reflect.Pointer,reflect.TypeOf 改用泛型 reflect.TypeFor, 嵌套结构体递归处复用已声明的 err 变量 - tools/array.go: 分块循环改用 range over int 与内置 min,精简 CutStrSlice2Slice 的越界分支
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.