gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
78.13k stars 7.98k forks source link

why no regex route schedule #3418

Open pollyduan opened 1 year ago

pollyduan commented 1 year ago

The cost of route scheduling is so little compared to controller. Is it worth abandoning regular expression routing rules for a bit of performance?

Cookiery commented 1 year ago

https://stackoverflow.com/questions/65034019/how-to-add-regex-constraints-to-gin-frameworks-router Also, it was a duplicated question, you can learn other answers in the https://github.com/gin-gonic/gin/issues/229

pollyduan commented 1 year ago

Thx U for answer, but ...

Even I can implement it from http lib, Thank you, anyway.