From d05395fe906dad7741201faa69a54fef538deda9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 4 Apr 2017 19:29:59 -0400 Subject: 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 --- routers/org/members.go | 6 +++--- routers/org/org.go | 8 ++++---- routers/org/setting.go | 8 ++++---- routers/org/teams.go | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'routers/org') 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 ( -- cgit v1.2.3