From f694e414cd33df7553e8e283837b22ae88326047 Mon Sep 17 00:00:00 2001 From: Erkin Matkaziev <73454434+erkin97@users.noreply.github.com> Date: Fri, 19 Feb 2021 19:28:59 +0900 Subject: [PATCH] Fix omitempty struct tag on Product.Description --- products.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products.go b/products.go index 1b2c2da..cd45f66 100644 --- a/products.go +++ b/products.go @@ -11,7 +11,7 @@ type ( Product struct { ID string `json:"id,omitempty"` Name string `json:"name"` - Description string `json:"description",omitempty` + Description string `json:"description,omitempty"` Category ProductCategory `json:"category,omitempty"` Type ProductType `json:"type"` ImageUrl string `json:"image_url,omitempty"`