martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Missing return at end of function #56

Closed ghost closed 8 years ago

ghost commented 8 years ago

./main.go:35: missing return at end of function

    m.Get("/test", func (r render.Render) string {
        r.HTML(200, "index", "world")
    })

I can't seem to figure out the problem here, any ideas?

unknwon commented 8 years ago

You are defining your handler returns a string, but you didn't anything.

ghost commented 8 years ago

@Unknwon Yeah, just noticed. Embarrassing, hah.