aboutsummaryrefslogtreecommitdiff
path: root/pkg/template
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2019-10-23 23:03:17 -0700
committerGitHub <noreply@github.com>2019-10-23 23:03:17 -0700
commit613139e7bef81d3573e7988a47eb6765f3de347a (patch)
tree49de7277898d3ff47a122c072568edb8ed4c9ac9 /pkg/template
parentfb100dbf98f02e4c631d142ff0f52ec29ee2f00c (diff)
Enable Go modules (#5835)
* Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
Diffstat (limited to 'pkg/template')
-rw-r--r--pkg/template/highlight/highlight.go2
-rw-r--r--pkg/template/template.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/template/highlight/highlight.go b/pkg/template/highlight/highlight.go
index 11b3967f..0a943f9b 100644
--- a/pkg/template/highlight/highlight.go
+++ b/pkg/template/highlight/highlight.go
@@ -8,7 +8,7 @@ import (
"path"
"strings"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/setting"
)
var (
diff --git a/pkg/template/template.go b/pkg/template/template.go
index 6d6d09da..97bd7a18 100644
--- a/pkg/template/template.go
+++ b/pkg/template/template.go
@@ -21,10 +21,10 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/editorconfig/editorconfig-core-go.v1"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/markup"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/pkg/tool"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/markup"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/pkg/tool"
)
// TODO: only initialize map once and save to a local variable to reduce copies.