render icon indicating copy to clipboard operation
render copied to clipboard

Value not found for type render.Render

Open hsdk123 opened this issue 11 years ago • 4 comments

I get the error "Value not found for type render.Render" if I import using "github.com/martini-contrib/render", while I don't get it upon using "github.com/codegangsta/martini-contrib/render"

I notice that the files in "github.com/codegangsta/martini-contrib/render" are rather old (not having render.Header(), etc.) and hence I want to use the files from this repository, but I'm getting the error upon using the files here.

hsdk123 avatar Nov 13 '14 21:11 hsdk123

"github.com/codegangsta/martini-contrib/render" is deprecated

Just call m.Use(render.Renderer())

yesnault avatar Feb 14 '15 13:02 yesnault

I can confirm that using m.Use(render.Renderer() fixed the above issue.

rkoster avatar May 06 '15 08:05 rkoster

I can confirm too, m.Use(render.Renderer()) works.

madhums avatar Jul 20 '15 22:07 madhums

@yesnault You make my day

sergeyklay avatar Apr 24 '16 18:04 sergeyklay