Last active
February 26, 2020 13:21
-
-
Save bastianccm/9177aa6cad65931dc05733b9b0b3df27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package polls | |
import ( | |
"context" | |
"strings" | |
"flamingo.me/flamingo/v3/framework/web" | |
) | |
type controller struct{} | |
func (c *controller) index(ctx context.Context, request *web.Request) web.Result { | |
return &web.Response{Body: strings.NewReader("Hello, world. You're at the polls index.")} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment