From 6c08e4cb16a45fbf67b41b29df06f0a18c17eb72 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Oct 2022 04:38:08 +0400 Subject: [PATCH] Now ID in Reply could be rendered as JSON. --- internal/guestbook/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/guestbook/reply.go b/internal/guestbook/reply.go index ebef0cd..eab9633 100644 --- a/internal/guestbook/reply.go +++ b/internal/guestbook/reply.go @@ -6,7 +6,7 @@ import ( ) type Reply struct { - ID int64 `json:"-"` + ID int64 `json:"id,omitempty"` Created string `json:"created,omitempty"` Message string `json:"message"` }