From ddce60a5584f4c6d42536807edd8dc6a3c015cc0 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Sat, 28 Dec 2024 19:19:45 -0300 Subject: [PATCH] fix missing format argument and wrong struct tag --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 40a6c99..e5f54a7 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ type UgoiraManifestBodyDesc struct { } type UgoiraManifest struct { - Error bool `json: "error"` + Error bool `json:"error"` Message string `json:"message"` Body UgoiraManifestBodyDesc `json:"body"` } @@ -120,7 +120,7 @@ func getUgoira(postId PostId, flags CliFlags) { if len(flags.manifestFileName) > 0 { ugoiraManifestFileName = flags.manifestFileName } else { - ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json") + ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json", postId) } say(flags.verbose, "Dumping manifest (to: %s)", ugoiraManifestFileName)