mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5210] [MERGED] pkg/config: use modern Go stdlib for sorting and string operations #5174
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#5174
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/5210
Author: @fatedier
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/6/2026
Merged by: @fatedier
Base:
dev← Head:new📝 Commits (1)
48c5faapkg/config: use modern Go stdlib for sorting and string operations📊 Changes
4 files changed (+59 additions, -27 deletions)
View changed files
📝
pkg/config/source/aggregator.go(+7 -15)📝
pkg/config/source/aggregator_test.go(+21 -0)📝
pkg/config/types/types.go(+6 -12)📝
pkg/config/types/types_test.go(+25 -0)📄 Description
Summary
sort.Slicewithslices.SortedFunc(maps.Values(...))+cmp.Compareinsource/aggregator.goHasSuffix+TrimSuffixwithstrings.CutSuffixand deduplicate error handling intypes/types.go2 files changed, net -14 lines. All behavior-preserving, verified by Codex review. Tests pass.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.