mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #5215] [MERGED] refactor: fix modernize lint issues #5180
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/5215
Author: @alexandear
Created: 3/7/2026
Status: ✅ Merged
Merged: 3/7/2026
Merged by: @fatedier
Base:
dev← Head:refactor/modernize📝 Commits (1)
e298293refactor: fix modernize lint issues📊 Changes
37 files changed (+152 additions, -152 deletions)
View changed files
📝
.golangci.yml(+4 -0)📝
client/proxy/sudp.go(+1 -1)📝
client/proxy/udp.go(+1 -1)📝
client/proxy/xtcp.go(+1 -1)📝
pkg/config/legacy/proxy.go(+8 -8)📝
pkg/config/legacy/visitor.go(+3 -3)📝
pkg/config/template.go(+1 -1)📝
pkg/config/types/types.go(+2 -2)📝
pkg/config/v1/proxy.go(+8 -8)📝
pkg/config/v1/proxy_plugin.go(+10 -10)📝
pkg/config/v1/visitor.go(+3 -3)📝
pkg/config/v1/visitor_plugin.go(+1 -1)📝
pkg/msg/msg.go(+1 -1)📝
pkg/nathole/analysis.go(+1 -1)📝
pkg/nathole/nathole.go(+2 -2)📝
pkg/plugin/visitor/virtual_net.go(+1 -4)📝
pkg/policy/featuregate/feature_gate.go(+5 -12)📝
pkg/util/http/http.go(+3 -3)📝
pkg/util/net/udp.go(+1 -5)📝
pkg/util/util/util.go(+2 -2)...and 17 more files
📄 Description
WHY
Encourage up-to-date Go idioms and cleaner code by adding the
modernizelinter.I decided to disable the
omitzerorule because fixing it leads to some behavioural changes. It can be fixed in a separate PR.modernizeissues were fixed via running the following command:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.