func DecodePathContext(ctx context.Context, v interface{}) error {
	decoder := form.NewDecoder()
	decoder.SetTagName("path")

	var (
		values   = url.Values{}
		rctx, ok = ctx.Value(chi.RouteCtxKey).(*chi.Context)
	)

	if !ok {
		return ErrNoRouteContextFound
	}

	for index, key := range rctx.URLParams.Keys {
		values.Add(key, rctx.URLParams.Values[index])
	}

	return decoder.Decode(v, values)
}
// DecodePath decodes an entity from path
DecodePath decodes an entity from path
// DecodePath decodes an entity from path
func DecodePathContext(ctx context.Context, v interface{}) error {
	decoder := form.NewDecoder()
	decoder.SetTagName("path")
	var (
		values   = url.Values{}
		rctx, ok = ctx.Value(chi.RouteCtxKey).(*chi.Context)
	)
	if !ok {
		return ErrNoRouteContextFound
	}
	for index, key := range rctx.URLParams.Keys {
		values.Add(key, rctx.URLParams.Values[index])
	}
	return decoder.Decode(v, values)
}
func DecodePathContext ( ctx context . Context , v interface { } ) error { decoder := form . NewDecoder ( ) decoder . SetTagName ( " " ) var ( values = url . Values { } rctx , ok = ctx . Value ( chi . RouteCtxKey ) . ( * chi . Context ) ) if ! ok { return ErrNoRouteContextFound } for index , key := range rctx . URLParams . Keys { values . Add ( key , rctx . URLParams . Values [ index ] ) } return decoder . Decode ( v , values ) }
DecodePath decodes an entity from path
DecodePath decodes an entity from path