diff options
author | Unknwon <u@gogs.io> | 2017-04-04 19:29:59 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-04 19:29:59 -0400 |
commit | d05395fe906dad7741201faa69a54fef538deda9 (patch) | |
tree | 11dae6c5c9b40b8ce85c7294bd0309c03cb1199e /routers/org | |
parent | 37b10666dea98cebf75d0c6f11ee87211ef94703 (diff) |
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
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/members.go | 6 | ||||
-rw-r--r-- | routers/org/org.go | 8 | ||||
-rw-r--r-- | routers/org/setting.go | 8 | ||||
-rw-r--r-- | routers/org/teams.go | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/routers/org/members.go b/routers/org/members.go index 2f059c8c..edc0c76c 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -10,9 +10,9 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/gogits/gogs/pkg/base" + "github.com/gogits/gogs/pkg/context" + "github.com/gogits/gogs/pkg/setting" ) const ( diff --git a/routers/org/org.go b/routers/org/org.go index cf49733b..07249db5 100644 --- a/routers/org/org.go +++ b/routers/org/org.go @@ -8,10 +8,10 @@ import ( log "gopkg.in/clog.v1" "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/form" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/gogits/gogs/pkg/form" + "github.com/gogits/gogs/pkg/base" + "github.com/gogits/gogs/pkg/context" + "github.com/gogits/gogs/pkg/setting" ) const ( diff --git a/routers/org/setting.go b/routers/org/setting.go index 5a07e2cb..9a5331f4 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -11,10 +11,10 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/form" - "github.com/gogits/gogs/modules/setting" + "github.com/gogits/gogs/pkg/base" + "github.com/gogits/gogs/pkg/context" + "github.com/gogits/gogs/pkg/form" + "github.com/gogits/gogs/pkg/setting" "github.com/gogits/gogs/routers/user" ) diff --git a/routers/org/teams.go b/routers/org/teams.go index abd2fd9e..ba40c6d4 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -12,9 +12,9 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/form" + "github.com/gogits/gogs/pkg/base" + "github.com/gogits/gogs/pkg/context" + "github.com/gogits/gogs/pkg/form" ) const ( |