1
0
Fork 0
forked from mirrors/tar-split

storage: Fix syntax of json tags

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-08-12 22:41:28 -07:00
parent 505d53c95c
commit b1783bc86d

View file

@ -32,8 +32,8 @@ const (
// collisions in a sample of 18.2 million, CRC64 had none. // collisions in a sample of 18.2 million, CRC64 had none.
type Entry struct { type Entry struct {
Type Type `json:"type"` Type Type `json:"type"`
Name string `json:"name",omitempty` Name string `json:"name,omitempty"`
Size int64 `json:"size",omitempty` Size int64 `json:"size,omitempty"`
Payload []byte `json:"payload"` // SegmentType stores payload here; FileType stores crc64 checksum here; Payload []byte `json:"payload"` // SegmentType stores payload here; FileType stores crc64 checksum here;
Position int `json:"position"` Position int `json:"position"`
} }