RW
fadedcb5be
Use utils Trim functions instead of the strings/bytes functions ( #3087 )
...
* Use utils Trim functions instead of the strings/bytes functions
* rename Test and Benchmark functions with same name
2024-07-24 16:25:35 +02:00
Juan Calderon-Perez
32168793f5
🧹 v3 (chore): Bump minimum version of Go to 1.21 ( #2911 )
...
Bump Go minimum version to 1.21
2024-03-10 10:47:21 +03:00
Muhammed Efe Cetin
1588b6b602
Merge remote-tracking branch 'origin/master'
2024-01-13 18:26:07 +03:00
database64128
b99712f13e
⚡ middleware/pprof: improve performance ( #2709 )
...
* ⚡ middleware/pprof: improve performance
Concatenate the custom and fixed prefixes beforehand, so the trimmed path can be switched on against constant strings.
goos: linux
goarch: amd64
pkg: github.com/gofiber/fiber/v2/middleware/pprof
cpu: 13th Gen Intel(R) Core(TM) i9-13900K
BenchmarkPprof/Slow-32 4912642 246.3 ns/op 480 B/op 10 allocs/op
BenchmarkPprof/Fast-32 411908472 2.913 ns/op 0 B/op 0 allocs/op
PASS
* 🌂 middleware/pprof: disable nonamedreturns linter on cutPrefix
2023-11-09 08:05:54 +01:00
Muhammed Efe Çetin
088cde594d
Merge remote-tracking branch 'origin/master' into v3-beta
2023-02-05 23:43:42 +03:00
leonklingele
167a8b5e94
🚀 Feature: Add and apply more stricter golangci-lint linting rules ( #2286 )
...
* golangci-lint: add and apply more stricter linting rules
* github: drop security workflow now that we use gosec linter inside golangci-lint
* github: use official golangci-lint CI linter
* Add editorconfig and gitattributes file
2023-01-27 09:01:37 +01:00
Muhammed Efe Çetin
c62dd16e8d
Merge remote-tracking branch 'origin/master' into v3-beta
2022-11-27 20:34:48 +03:00
Glenn Lewis
13247206ab
Add URL prefix to pprof middleware ( #2194 )
...
* Add URL prefix to pprof middleware
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
* Minor tweak
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
2022-11-09 07:59:33 +01:00
M. Efe Çetin
10d6f69a89
✨ v3 (feature): new redirection methods ( #2014 )
...
* ✨ v3 (feature): new redirection methods
* add flash messages
* withinput, parsing flash message
* add tests
* add benchmarks
* gosec issues
* fix tests
* fix tests
* fix performance issues
* fix performance issues
* optimization.
* better names
* fix tests
* Update router.go
* fix
* fix old messaages with flash messages behavior, add new test case with req
* complete some reviews
* add pool for redirection.
* use constant
* update
* ✨ v3 (feature): new redirection methods
* fix tests, optimize cookie parsing (9 allocs -> 1 alloc)
* test case for message includes comma
* cleanup
* optimization.
* some improvements for the redirect feature
* fix Benchmark_Redirect_Route_WithFlashMessages
* some improvements for the redirect feature
* Update redirect.go
* improve message parsing & test case
Co-authored-by: René Werner <rene@gofiber.io>
2022-09-23 08:17:34 +02:00
M. Efe Çetin
a458bd344c
✨ v3 (feature): convert fiber.Ctx type to interface ( #1928 )
...
* ✨ v3: convert fiber.Ctx type to interface
* update ctx methods
* add new methods to customize ctx, fix some problems
* update comments.
* fix something
2022-07-13 07:48:29 +02:00
Muhammed Efe Çetin
1188144d78
🎉 v3: init
2022-05-31 17:35:49 +03:00
M. Efe Çetin
5766feef29
✨ feature: add Next to Pprof and Expvar middlewares. ( #1737 )
...
* Add Next to Pprof and Expvar middlewares.
* Update READMEs.
2022-01-29 22:24:32 +01:00
bestgopher
2d6323c197
❌ :fix #1360 ( #1361 )
2021-06-03 16:02:17 +02:00
bestgopher
2f05108351
fix pprof redirect path ( #1330 )
...
* 📒 :fix redirect path
* ⚡ ️:fix test case
* 📚 :use constant instead of number
* 🔥 :TrimRight instead of TrimSuffix
2021-05-19 12:47:07 +02:00
kiyon
d2727f1fe8
👷 improve pprof test cases
2020-09-15 09:51:05 +08:00
Fenny
ec5d66e7a8
⚡ v2
2020-09-13 11:20:11 +02:00