Commit Graph

16 Commits (42d921d353c0255197245d12a55d9280d0157c10)

Author SHA1 Message Date
leonklingele ac4ce21d9c
🐛 Bug: Fix issues introduced in linting PR (#2319)
* internal: revert linting changes

Changes to the internal package should not have been made in 167a8b5e94.

* middleware/monitor: revert changes to exported field "ChartJSURL"

This is a breaking change introduced in 167a8b5e94.

* middleware/monitor: fix error checking

Fix the errorenous error checking introduced in 167a8b5e94.

* 🐛 Bug: Fix issues introduced in linting PR #2319

* 🐛 Bug: Fix issues introduced in linting PR #2319

* Bug: Fix issues introduced in linting PR #2319

---------

Co-authored-by: René Werner <rene@gofiber.io>
2023-02-02 15:57:40 +01: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
Vano Devium 901492a784
utils: ConvertToBytes: empty string (#1877) 2022-04-24 19:15:59 +02:00
Vano Devium 63391d47b4
utils: ConvertToBytes (#1875)
* utils: ConvertToBytes

* remove unneeded compare with golang function

* remove unneeded compare with golang function

* Update common_test.go

* utils: ConvertToBytes

Speed improvement
old:
Benchmark_ConvertToBytes/fiber-8                 3541161                317.9 ns/op          128 B/op          2 allocs/op
Benchmark_ConvertToBytes/fiber-8                 3465039                336.8 ns/op          128 B/op          2 allocs/op

new:
Benchmark_ConvertToBytes/fiber-12               32883782                33.76 ns/op            0 B/op          0 allocs/op
Benchmark_ConvertToBytes/fiber-12               36084900                33.47 ns/op            0 B/op          0 allocs/op

Co-authored-by: RW <rene@gofiber.io>
2022-04-24 12:06:06 +02:00
vecpeng f98a9ba405
feature: print all routes message when server starts (#1677)
* feature: print all routes message when server starts

* feature: print all routes message when server starts

* feature:  print all routes message when server starts

* 🐛fix: errors unhandled

* 🐛fix: ignore child process and add some "-" to the table head

* 🐛fix: add printRoutesMessage for listener and listenTLS
2021-12-30 14:13:31 +01:00
Gusted 7b7dcf29f7
♻️ Tidy up the codebase (#1613)
* run gofmt

* add t.Helper()

* Simplify assigns

* Simplify make operation

* Remove unused field in struct

* Fix typo

* Run gofumpt ./

* Consistent spacing

* len(...) can never be negative

* Use ReplaceAll

* Simplify operation

* Remove deadcode

* Fix typo

* Tidy up `} else { if ...`

* Fix AssertEqual

* Remove t.Helper() to fix go1.14.15
2021-11-05 08:00:03 +01:00
Ali Baran Eser cdbcfbec17
🔥 Feature: add IP ranges support to config.TrustedProxies (#1602)
* feat: add IP ranges support to config.TrustedProxies

* Added config example to README and moved IncrementIPRange to utils.
2021-10-28 00:46:39 +02:00
Paul Cento 15987a2677
♻️ Refactor: remove use of deprecated functions (#1474) 2021-08-06 07:56:36 +02:00
Fenny 7be78406cb 🔐 use uuid v4 in session 2020-11-30 14:31:10 +01:00
Fenny 772d78186a 🐌 too slow, need better alternative 2020-11-27 18:34:22 +01:00
Fenny 0c8efc3de3 💱 update uuid 2020-11-27 16:58:19 +01:00
Szymon Bielenica 56283b8afd 🎨 Adjust multiple comments to comply with the linter 2020-10-25 12:23:10 +01:00
Fenny b4f978515d 📝 update utils 2020-09-17 02:21:36 +02:00
ReneWerner87 3028b8d5d8 Make UUID function thread-safe
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-15 10:47:10 +02:00
ReneWerner87 5f0651fd40 Make UUID function thread-safe
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-15 10:33:41 +02:00
Fenny a63f4f067b 🛠 export utils
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:16:45 +02:00