This commit is contained in:
Unknown 2014-04-13 04:27:29 -04:00
parent d26a333dfb
commit ea74be2f2e
5 changed files with 24 additions and 1 deletions

View file

@ -54,3 +54,5 @@ const (
BindingBooleanTypeError string = "BooleanTypeError"
BindingFloatTypeError string = "FloatTypeError"
)
var GoGetMetas = make(map[string]bool)

View file

@ -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()
}