mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
go get
This commit is contained in:
parent
d26a333dfb
commit
ea74be2f2e
5 changed files with 24 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue