mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-30 19:33:01 +00:00
* feature: implement generic params function * update: add ctx generic params benchmark function * fix: fix linter errors on boolean types * fix: fix linter errors on float variable types * tests: add Test_Params_TypeAssertFail Co-authored-by: Jason McNeil <sixcolors@mac.com> * Update ctx_test.go * typo: change genericType typo to GenericType in documents * remove ParamsInt method and rewrite Params method * add genericParseType tests and benchmarks and simplify genericQuery and genericParams tests and benchmarks * added GetReqHeader generic function * added tests for params generic function * add tests for GetReqHeader generic function * added GetReqHeader generic function * Revert "added GetReqHeader generic function" This reverts commit a63cebb7121fdd315c53b6f0aa3042612a0d23ac. * fix tests and benchamarks of generic tests * added default value to array test genericParse * fix Params generic function on default value and fixes some tests and typos * remove Test_Params_TypeAssertFail function(it didn't panic anyway) * fix bad usage on parallel tests * add convert function * fix generic tests * fix fail tests on use parallel multiple time * fix typo on params comment section * remove pointer refer on Convert * update generic benchmarks * reslove conflicts1 * add specific tests to integer and unsigned integer generic parser * fix typo on Convert document * change uint tests of Test_genericParseTypeInts * move generic types to utils.go file and change bitsize of int value type to 0 * update genericParseInt unit tests * update generic uint tests and pass value type in check functions * reverse dependency of Params and genericParams * update convert docs --------- Co-authored-by: Jason McNeil <sixcolors@mac.com> Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Co-authored-by: RW <rene@gofiber.io>