func Test_Parse(tester *testing.T) { content, _ := ioutil.ReadFile("/Users/gaowei/workSpace/github/remote/coco/res/test/html") if len(content) == 0 { tester.Error("not read content") } response := new(api.FetchResponse) response.SetBody(content) cur := new(CommExecutor) _, text, _ := cur.Parse(*response) fmt.Println(text) }