GitClassic
Feed
Explore
Random
Go Pro
Sign in
go-chi
/
chi
Code
/
Commits
/ 877e876
Use strings.Cut in a few places (#971)
Now that we're 1.20+ instead of 1.14+ we can use 1.18's strings.Cut in a few places to simplify code.
James Raspass
committed on Feb 4, 2025, 03:13 PM
Showing
4
changed files
+6 additions
-21 deletions
M
middleware/compress.go
+2
-5
M
middleware/realip.go
+1
-5
M
middleware/route_headers.go
+1
-7
M
tree.go
+2
-4
Browse files at this commit โ