diff --git a/controllers/ParseController.go b/controllers/ParseController.go index b3a4fbc..3ca31f2 100644 --- a/controllers/ParseController.go +++ b/controllers/ParseController.go @@ -79,7 +79,9 @@ func ParseLinkTY(link string,w http.ResponseWriter) { product, err := linkParser.ParseLink() - fmt.Println(product) + jsProd,_:= json.MarshalIndent(product,""," ") + + fmt.Println(string(jsProd)) if err != nil { w.WriteHeader(http.StatusInternalServerError)