Refactoring: rename modules -> pkg

Reasons to change:

1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
This commit is contained in:
Unknwon
2017-04-04 19:29:59 -04:00
parent 37b10666de
commit d05395fe90
138 changed files with 275 additions and 275 deletions

View File

@@ -7,7 +7,7 @@ package admin
import (
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/modules/context"
"github.com/gogits/gogs/pkg/context"
)
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {