mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 00:59:11 +01:00
refactor(misc): enhance performance on bytes pool, entrypoint, access log and route context handling
- Introduced benchmark tests for Entrypoint and ReverseProxy to evaluate performance. - Updated Entrypoint's ServeHTTP method to improve route context management. - Added new test file for entrypoint benchmarks and refined existing tests for route handling.
This commit is contained in:
@@ -20,8 +20,10 @@ func CommaSeperatedList(s string) []string {
|
||||
return res
|
||||
}
|
||||
|
||||
var caseTitle = cases.Title(language.AmericanEnglish)
|
||||
|
||||
func Title(s string) string {
|
||||
return cases.Title(language.AmericanEnglish).String(s)
|
||||
return caseTitle.String(s)
|
||||
}
|
||||
|
||||
func ContainsFold(s, substr string) bool {
|
||||
|
||||
Reference in New Issue
Block a user