github.com/rafecolton/buffalo@v0.9.5/generators/resource/templates/actions/resource-name.go.tmpl (about) 1 package actions 2 3 import "github.com/gobuffalo/buffalo" 4 5 type {{.camel}}Resource struct{ 6 buffalo.Resource 7 } 8 9 {{ range $a := .actions }} 10 // {{$a}} default implementation. 11 func (v {{$.camel}}Resource) {{$a}}(c buffalo.Context) error { 12 return c.Render(200, r.String("{{$.camel}}#{{$a}}")) 13 } 14 15 {{end}}