fiber/middleware
Javad Rajabzade 7609117cec
Improved some conditions (#1386)
* 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
..
basicauth fix some statements 2021-01-15 16:56:54 +08:00
cache Improved some conditions (#1386) 2021-06-17 22:03:59 +02:00
compress improve mw 2020-11-21 12:36:16 -05:00
cors Accelerate start process for many routes #1081 2021-01-24 13:02:21 +01:00
csrf 📚 Doc: Correct Session to Crsf in Import (#1277) 2021-04-10 16:19:40 -04:00
etag Etag middleware support to custom etags 2021-04-18 23:08:01 -03:00
expvar improve mw 2020-11-21 12:36:16 -05:00
favicon 📚 Doc: Correct cors to favicon in import statement (#1279) 2021-04-11 21:07:31 +02:00
filesystem 🔥 Add `PathPrefix` parameter to `filesystem` middleware (#1326) 2021-05-12 08:58:01 +02:00
limiter Change deprecated struct elements (#1335) 2021-05-18 10:56:55 +02:00
logger Improved some conditions (#1386) 2021-06-17 22:03:59 +02:00
monitor ♻️ Removed Printed Warning (#1268) 2021-04-06 15:21:53 +02:00
pprof :fix #1360 (#1361) 2021-06-03 16:02:17 +02:00
proxy 🚀 Configure proxy.Balancer with custom timeout #1362 (#1364) 2021-06-04 16:54:03 +02:00
recover recover middleware support print stack trace 2021-01-23 13:33:49 +08:00
requestid 🛠 separate config 2020-11-11 14:03:16 +01:00
session 🔥 feat: expiration per session (#1363) 2021-06-13 12:39:19 +02:00
timeout 📝update handler example in timeout (#1328) 2021-05-10 10:48:07 -04:00