log
This commit is contained in:
1
main.go
1
main.go
@@ -59,6 +59,7 @@ func main() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
b, _ := ioutil.ReadAll(resp.Body)
|
b, _ := ioutil.ReadAll(resp.Body)
|
||||||
|
log.Printf("%d: %s", resp.StatusCode, b)
|
||||||
buff := bytes.NewBuffer(b)
|
buff := bytes.NewBuffer(b)
|
||||||
js, err := xj.Convert(buff)
|
js, err := xj.Convert(buff)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user