8000 type *revel.RevelHeader does not support indexing · Issue #4 · richtr/baseapp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
type *revel.RevelHeader does not support indexing #4
Open
@slowkow

Description

@slowkow

Thanks for making this package! I'm new to go and revel, and this looks like a nice place to start.

I tried installing your package, but I get some errors. Do you have any tips? Perhaps an update to the revel package broke the baseapp? I'm not sure.

go get github.com/richtr/baseapp/...

# github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)

If I setup the config file, ignore the installation error, and try running a test server anyway, I get this:

revel run github.com/richtr/baseapp test

ERROR 09:49:09  revel  build.go:146: # github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0