package service import ( "log" "net/url" "testing" ) func TestBaiduCheck_OCR(t *testing.T) { b := BaiduOCR{ API_KEY: "NrtkiynNnqkQOwm6isip58gS", SECRET_KEY: "CO9594vqWsXVdhQEfXSNlDeHu5Jk7lWE", } r, err := b.OCR(url.QueryEscape(GetFileContentAsBase64("D:\\2.jpg"))) log.Println(r, err) }