Reduced memory usage

This commit is contained in:
Eduard Urbach 2023-09-02 09:19:11 +02:00
parent ad033d4315
commit 7df818ffff
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 95 additions and 84 deletions

View file

@ -27,7 +27,7 @@ func (router *Router[T]) Add(method string, path string, handler T) {
}
// Lookup finds the handler and parameters for the given route.
func (router *Router[T]) Lookup(method string, path string) (T, []Parameter) {
func (router *Router[T]) Lookup(method string, path string) (T, []keyValue) {
if method[0] == 'G' {
return router.get.Lookup(path)
}