mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
go get
This commit is contained in:
@@ -54,3 +54,5 @@ const (
|
||||
BindingBooleanTypeError string = "BooleanTypeError"
|
||||
BindingFloatTypeError string = "FloatTypeError"
|
||||
)
|
||||
|
||||
var GoGetMetas = make(map[string]bool)
|
||||
|
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user