From bf397775505714cf2ee2f1f28239a1245fdb56b9 Mon Sep 17 00:00:00 2001 From: Max Cherry Date: Thu, 19 Oct 2017 21:19:10 +0300 Subject: [PATCH] Bring back omitempty for Banner.{W,H} - they are pointers now --- banner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/banner.go b/banner.go index 6d078cf..f776924 100644 --- a/banner.go +++ b/banner.go @@ -28,7 +28,7 @@ type Banner struct { // Description: // Exact width in device independent pixels (DIPS); // recommended if no format objects are specified. - W *uint64 `json:"w"` + W *uint64 `json:"w,omitempty"` // Attribute: // h @@ -37,7 +37,7 @@ type Banner struct { // Description: // Exact height in device independent pixels (DIPS); // recommended if no format objects are specified. - H *uint64 `json:"h"` + H *uint64 `json:"h,omitempty"` // Attribute: // wmax