Skip to content

Package should be named revel or rev, not both #54

@ghost

Description

When I create a sample project, it creates the following code in app/controllers/app.go:

package controllers

import "github.com/robfig/revel"

type Application struct {
    *rev.Controller
}

func (c Application) Index() rev.Result {
    return c.Render()
}

But package revel doesn't exist. When "go get" runs, it downloads github.com/robfig/revel with the directory revel, yet you placed all the source code into package "rev". So what I had to do to get gocode to stop complaining was to create a symlink named rev to point to revel and change the import statements to import only rev, not revel.

The gist of this is: Please put the code into package revel if the final directory is named revel, or rename the final directory to rev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions