vardius / gorouter

Go Server/API micro framework, HTTP request router, multiplexer, mux
https://rafallorenz.com/gorouter
MIT License
154 stars 17 forks source link

Code refactor #13

Closed vardius closed 5 years ago

vardius commented 5 years ago

This is attempt to improve code readability without downgrading performance.

image
codecov[bot] commented 5 years ago

Codecov Report

Merging #13 into master will increase coverage by 21.03%. The diff coverage is 92.36%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #13       +/-   ##
===========================================
+ Coverage   73.78%   94.82%   +21.03%     
===========================================
  Files          10        8        -2     
  Lines         454      309      -145     
===========================================
- Hits          335      293       -42     
+ Misses        107       12       -95     
+ Partials       12        4        -8
Impacted Files Coverage Δ
middleware/middleware.go 71.42% <ø> (ø) :arrow_up:
context/param.go 50% <0%> (-30%) :arrow_down:
route.go 100% <100%> (ø) :arrow_up:
nethttp.go 100% <100%> (ø) :arrow_up:
path/path.go 92.59% <90%> (ø) :arrow_up:
fasthttp.go 96.9% <92.3%> (-3.1%) :arrow_down:
tree.go 92.85% <92.59%> (+5.35%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4762010...401623e. Read the comment docs.

vardius commented 5 years ago

Use method constants from native http package