diff --git a/param.go b/param.go index 83a246f..c2660f9 100644 --- a/param.go +++ b/param.go @@ -7,4 +7,17 @@ type PathParam struct { type PathParams map[string]PathParam +func (p PathParams) Get(key string) string { + param, ok := p[key] + if !ok { + return "" + } + + return param.Value +} + +func (p PathParams) Set(key string, param PathParam) { + p[key] = param +} + // TODO 바인딩 추가 필요