package tools import ( "log" "testing" ) func TestGetStream(t *testing.T) { GetStream("http://81.69.45.114:8083/data_collection/searchStream?keywords=你会什么呢啊") } func TestPostHeader(t *testing.T) { url := "https://jd.sopans.com/check" headers := make(map[string]string) headers["Content-Type"] = "application/x-www-form-urlencoded" res, err := PostHeader(url, []byte("username=kefu2&password=1234526"), headers) log.Println(res, err) } func TestIsMobile(t *testing.T) { IsMobile("aaaa") }