package service import ( "log" "testing" ) func TestParseImgMessage(t *testing.T) { str := "img[http://www.baidu.com]" resp := ParseImgMessage(str) log.Println(resp) }