Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing return at end of function #56

Closed
ghost opened this issue Sep 21, 2015 · 2 comments
Closed

Missing return at end of function #56

ghost opened this issue Sep 21, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 21, 2015

./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
Copy link

unknwon commented Sep 21, 2015

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

@ghost
Copy link
Author

ghost commented Sep 21, 2015

@unknwon Yeah, just noticed. Embarrassing, hah.

@ghost ghost closed this as completed Sep 21, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant