From 6ff32267c7cfe469c696f12ddbb88d2da006b8c1 Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 18 Mar 2023 13:40:23 +0500 Subject: [PATCH] test2 --- controllers/ParseController.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)