Commit Graph

101 Commits (4b62d3d592248077c38f53d6117828f278e8eb3f)

Author SHA1 Message Date
M. Efe Çetin f04ddd41ff
Fix goccy/go-json for go1.18-beta1. (#1673) 2021-12-29 02:12:29 +01:00
M. Efe Çetin 10aa7f7f3b
Update goccy/go-json to 0.8.1 (#1644)
* Update goccy/go-json to 0.8.1

* Fix linter.

* Update error.go
2021-12-06 08:24:57 +01:00
RW 9d01ed1d7c
Update fasthttp from v1.29.0 to v1.31.0 (#1603)
* Update fasthttp from v1.29.0 to v1.31.0

* Update fasthttp from v1.29.0 to v1.31.0
2021-10-28 08:55:59 +02:00
M. Efe Çetin 9eaa8b0c73
Change default json lib. (#1563)
* Change default json lib.

* Remove gopsutil test.

* Fix tests.

* Ignore linter for UnmarshalFieldError.

* update
2021-10-11 08:28:06 +02:00
Ali Yusuf 0763ecdd13
fix: Add missing TargetConditionals.h include (#1572)
closes #1571
2021-10-10 17:06:17 +02:00
Jason McNeil 9f537f922d
Update load_darwin.go (#1564) 2021-10-06 22:49:23 +02:00
M. Efe Çetin c0c14671ba
Add one minute load avg for monitor. (#1530)
Fix CI/CD errors.

Fix Windows.

Fix Windows.

Fix golint error.
2021-09-22 08:29:44 +02:00
RW 3e8227d7eb
FIX: panic: unaligned 64-bit atomic operation [32 bit machines] #1487 (#1502)
* 🐛 panic: unaligned 64-bit atomic operation [32 bit machines] #1487
https://pkg.go.dev/sync/atomic#pkg-notes
https://go101.org/article/memory-layout.html
https://github.com/golang/go/issues/36606

* 🐛 panic: unaligned 64-bit atomic operation [32 bit machines] #1487
change from uin64 to uint32 for the timestamp -> max value is 4294967295 -> Sun Feb 07 2106 06:28:15 GMT+0000
2021-08-22 10:28:34 +02:00
Kazumasa Takenaka (Bamboo) f5338266e3
fix typo (#1442)
paramters -> parameters
avilable  -> available
seperated -> separated
2021-07-17 17:20:14 +02:00
tuhao1020 a109dc6c68
Schema parser: use full match instead of strings.HasPrefix (#1424)
* #1414 use full match instead of strings.HasPrefix

* update for  nested or recursive structs

* replace strings.Contains with strings.IndexByte
2021-07-11 11:45:15 +02:00
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
Ilya Chukov 89fdbcf036
Improve errors handling (#1381)
* replace `fmt.Errorf` to `errors.New`

* changed once `Sprintf` to `Join`
2021-06-13 11:11:42 +02:00
RW b1b490645e
Fix session middleware (#1235)
encoding/gob for session middleware
2021-03-26 11:24:55 +01:00
Kiyon ff2052c48a 👷 Improve tls test 2021-03-11 14:33:04 +08:00
TroyDota 80fadc607c
Update memory.go 2021-02-15 04:07:51 +02:00
unknown c62e5f7d4d go style updates 2021-01-26 21:57:58 +03:00
Fenny 9e87cb7c17 ✏ update msg 2020-12-06 16:39:32 +01:00
Fenny 19bee02563 🩹 draft for #1051 2020-12-03 11:56:32 +01:00
Fenny e28c886d73 🩹 fix internal memory storage 2020-12-03 11:14:33 +01: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
Fenny e1078f8716 🩹 fix #1030 2020-11-26 12:05:43 +01:00
Fenny a3ecbbee3c 🩹 fix missing variables 2020-11-24 16:35:09 +01:00
Fenny f6d1689155 🩹 fix #1012 2020-11-24 16:31:13 +01:00
Fenny 323d9d89cc 🩹 fix manager logic 2020-11-23 07:38:42 +01:00
Fenny 8fe458011d 📦 add mapstore 2020-11-20 11:43:07 +01:00
Fenny 6ded637712 🩹 update store logic 2020-11-18 09:02:42 +01:00
Fenny a98fb7a5f8 🩹 allow to disable BodySize
Co-Authored-By: Kirill Danshin <9026581+kirillDanshin@users.noreply.github.com>
2020-11-18 08:57:27 +01:00
Fenny 362b9de868 🩹 fix duration check 2020-11-13 18:35:17 +01:00
Fenny 573853d440 🔍 add len check 2020-11-12 20:14:10 +01:00
Fenny 015de85e30 💼 update session 2020-11-06 19:43:57 +01:00
Fenny 891f36340e 📦 improve json encoding 2020-11-03 09:01:49 +01:00
LeoZhan 00750b8989 refactor: format the code 2020-11-01 00:32:01 +08:00
Fenny 67dfa17903 📦 vendor fwd 2020-10-27 00:33:58 +01:00
Joey B 93cd0c5cc7
Merge pull request #965 from Fenny/master
🎫 add msgp
2020-10-25 17:14:48 -07:00
Fenny 4b779ceee1 🎫 add msgp 2020-10-26 01:13:07 +01:00
Fenny ea6cca7a05 🎫 add msgp 2020-10-26 01:12:04 +01:00
Szymon Bielenica 56283b8afd 🎨 Adjust multiple comments to comply with the linter 2020-10-25 12:23:10 +01:00
Fenny 8852f33374 🧹 fix test 2020-09-29 01:33:52 +02:00
Fenny 6cac2faa9a 🚮 remove test 2020-09-28 00:42:53 +02:00
Fenny 0e21234f5e 📦 vendor gopsutil 2020-09-27 22:56:31 +02:00
Fenny a63f4f067b 🛠 export utils
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:16:45 +02:00
Fenny b96cbff310
Merge pull request #774 from Fenny/master
👂 uncomment internal benchmarks
2020-09-14 12:15:24 +02:00
Fenny 2768ea2a77 🙌 make utils public
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:12:29 +02:00
Fenny b32c793886 👂 uncomment internal benchmarks
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 11:58:44 +02:00
ReneWerner87 0db30166e3 🪓 Code separation for utils (🧹clean code)
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-14 10:27:39 +02:00
ReneWerner87 712b585b9d 🪓 Code separation for utils (🧹clean code)
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-14 10:23:22 +02:00
Fenny 6683daa5da 🏃‍♂️ move utils to internal
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 09:30:34 +02:00
Fenny a09daabfee move utils to internal 2020-09-14 09:24:48 +02:00
Fenny a3cac71ae8 🔦 move utils to internal 2020-09-14 09:09:06 +02:00