From c14231baa434c3603f9004992a1bd06bbeac3610 Mon Sep 17 00:00:00 2001 From: Yanhao Yang Date: Tue, 15 Nov 2022 16:40:32 +0100 Subject: [PATCH] . --- snippets/go.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/go.snippets b/snippets/go.snippets index 4ad101e83..35f2a7292 100644 --- a/snippets/go.snippets +++ b/snippets/go.snippets @@ -297,7 +297,7 @@ snippet jp "json Marshal and print" // DEBUG: remove before commit _, file, line, _ := runtime.Caller(0) jb, _ := json.MarshalIndent(${1}, "", " ") - fmt.Printf("\n[%s:%s - %s]\n%s\n\n", file, line, name, string(jb)) + fmt.Printf("\n[%s:%d - %s]\n%s\n\n", file, line, name, string(jb)) _ = ioutil.WriteFile(name + ".json", jb, 0644) }("${2}")