prometheus: [TESTS] remote-write: fix slice init length
zap: fix: fix slice init length
有提交很多类似的pr
caddy: bug: Fix the incorrect parameter order
vault: fix: Fix problematic error returns
https://github.com/kubescape/kubescape/pull/1827/files
k8s: fix: Fix non-constant format string in framework.Logf call
etcd: *: use strings.Builder instead of bytes.Buffer
grafana/pyroscope: benchmark: use the more efficient strings.Builder
teleport: Fix: time.Since should not be used directly after a defer statement
k9s: bugfix: fix panic in BenchmarkPodRender by using NewPod() constructor
concourse/concourse: fix: fix the mistakes in defer statements
https://github.com/BuildOnViction/victionchain/pull/515/files –> bug: Fix non-deferred time.Since calls in instrumentation
AirenSoft/OvenMediaEngine: Fix potential memory leak
google/pprof:
Fix exception when file type contains colon
go:
proposal: cmd/vet: add a new analyzer for check missing values after append 通过
代码实现:
!!! go/analysis: add a new analyzer for check missing values after append
cmd/go: go env incorrect quoting for values with double quotes 最终未采用
crypto: use t.Parallel() to increase speed
!!! cmd/compile/internal/base: optimize the readImportCfg function to make it clearer
!!! internal/bytealg: optimize Count/CountString in arm64
!!! cmd/pprof: fix exception when file or path contains colon
os: use strings.EqualFold in os_test.go
cmd: add a new analyzer for check missing values after append
!!! html/template: track continue nodes correctly when escaping
proposal: cmd/vet: add a new analyzer to check for incorrect slice length initialization #69872 还未接受
!!! net/http: use strings.FieldsFuncSeq to reduce memory allocations
golang/tools:
代码现代化: 可参考博客 Go tools库的使用
!!! gopls/internal/analysis/modernize: don’t offer a fix when initialization statement is not empty
!!! gopls/internal/analysis/modernize: add checks to prevent invalid fixes from slicesContains
!!! x/tools/gopls/internal/analysis/modernize: apply modernizations for TrimPrefix to TrimSuffix too —-> 相关issue: https://github.com/golang/go/issues/75205
(貌似是typescript-go项目的核心开发者提的)
!!! go/analysis/passes/modernize: fix the potential deadlock issues in bloop
!!! go/analysis/passes/modernize: directly remove user-defined min/max functions
!!! go/analysis/passes/modernize: fix the potential deadlock issues in bloop
golang/tools 中 go vet:
!!! go/analysis/passes/printf: fix the issue where %#q/%#x/%#X recursion is not recognized
golang/pkgsite:
!!! internal/fetch: fix extractReadmes work on _directories
golang/benchmarks
!!! sweet/cmd/sweet: fix wrong return value
原文链接: https://dashen.tech/2025/03/30/Contributor/
版权声明: 转载请注明出处.