From b1783bc86d720d5bcd2497fbc0e72ea50f74b826 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Wed, 12 Aug 2015 22:41:28 -0700 Subject: [PATCH] storage: Fix syntax of json tags Signed-off-by: Alexander Morozov --- tar/storage/entry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tar/storage/entry.go b/tar/storage/entry.go index 57a0256..38fe7ba 100644 --- a/tar/storage/entry.go +++ b/tar/storage/entry.go @@ -32,8 +32,8 @@ const ( // collisions in a sample of 18.2 million, CRC64 had none. type Entry struct { Type Type `json:"type"` - Name string `json:"name",omitempty` - Size int64 `json:"size",omitempty` + Name string `json:"name,omitempty"` + Size int64 `json:"size,omitempty"` Payload []byte `json:"payload"` // SegmentType stores payload here; FileType stores crc64 checksum here; Position int `json:"position"` }