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
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
Fenny
ebd507d5e5
🦵 limit go routines in test
2020-11-30 14:34:17 +01:00
Fenny
7be78406cb
🔐 use uuid v4 in session
2020-11-30 14:31:10 +01:00
Fenny
0cc60e3e39
✏ update utils
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-11-17 08:24:28 +01:00
ReneWerner87
4995d49921
Merge remote-tracking branch 'origin/master' into UUID_thread_safe
2020-09-15 10:42:53 +02:00
ReneWerner87
032f202f98
☔ Make UUID function thread-safe
...
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-15 10:36:47 +02:00
ReneWerner87
5073458cd0
☔ Make UUID function thread-safe
...
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-15 10:35:18 +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
58e5ddab3a
🔨 fix test
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:21:50 +02:00
Fenny
a63f4f067b
🛠 export utils
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:16:45 +02:00