package site import ( "strings" "testing" ) func Test_GetSiteInfo(t *testing.T) { master := "https://devmaster.tetele.net" host := "dev.tetele.net:80" ret, err := GetSiteInfo(master, host) t.Log(ret) t.Log(err) str := " dev.tetele.net" trim := strings.Trim(str, " ") t.Log(str) t.Log(trim) }