Commit Graph

60 Commits (immutable-benchmark)

Author SHA1 Message Date
Javad Rajabzade 7609117cec
Improved some conditions ()
* simplify `u <= (1<<7)-1` to `u < (1 << 7)`

* It's not recommended to use `len` for empty string, we can check with string with ""

* It's not recommended to use `len` for empty string, we can check with string with ""

* It's not recommended to use `len` for empty string, we can check with string with ""

* It's not recommended to use `len` for empty string, we can check with string with ""

* Instead Bool comparison can using simplified bool check if !var = false checking

* Unnecessary use of fmt.Sprintf for value without format

* For check condition two value not required ! method

* nil check may not be enough for slice, better check with len

* function parameters combined

* When the form returns error information, the text content should not start with a capital letter or end with a punctuation mark

* error var invalidPath should have name of the form errFoo, It is recommended that the error variables that are part of an API should be named

* change to condition len(x), it's faster https://github.com/gofiber/fiber/pull/1386#discussion_r652369520

* Update write.go

* Update write_bytes.go

* Update store.go

Co-authored-by: RW <rene@gofiber.io>
2021-06-17 22:03:59 +02:00
Zuolar 4dcb490489
fix logger [WARNING: DATA RACE] ()
* fix logger [WARNING: DATA RACE]
* add logger unit test for data race
2021-03-17 08:08:15 +01:00
Abhishek Kumar cae82d0a2f 🩹 Fix: fix test for response body 2021-01-24 15:00:51 +00:00
Abhishek Kumar e8c3a0fac3 🩹 Fix: add separate test for resBody logger variable 2021-01-24 13:11:46 +00:00
Abhishek Kumar 9c18716885 🔥 Feature: add proper tests for new logger variables 2021-01-24 11:21:10 +00:00
Abhishek Kumar 7c36b32194 🩹 Fix: reference to logger issue 2021-01-23 17:19:33 +00:00
Fenny 67eed4c721 🚀 restore benchmark
Co-Authored-By: Rafael Cossovan <navossoc@gmail.com>
2020-10-28 03:56:54 +01:00
Fenny 17b6597ec8 💼 add locals to logger
Co-Authored-By: Rafael Cossovan <navossoc@gmail.com>
2020-10-28 03:54:40 +01:00
kiyon b007a87e4a 👷 add logger test cases 2020-09-17 13:34:23 +08:00
kiyon 0088a6900a 🍱 improve logger performance 2020-09-16 14:07:40 +08:00