aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/template.go')
-rw-r--r--modules/base/template.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 6241497969..863bd89e81 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -197,3 +197,15 @@ func DiffLineTypeToStr(diffType int) string {
}
return "same"
}
+
+const (
+ TPL_GO_GET_META = `<meta name="go-import" content="%s git %s">`
+)
+
+func GetGoGetMetaList() []byte {
+ buf := bytes.NewBuffer([]byte(""))
+ for meta := range GoGetMetas {
+ buf.WriteString(fmt.Sprintf(TPL_GO_GET_META, Domain, meta))
+ }
+ return buf.Bytes()
+}