1
0
Fork 0
forked from mirrors/tar-split

Merge pull request #9 from LK4D4/fix_json_tags

storage: Fix syntax of json tags
This commit is contained in:
Vincent Batts 2015-08-13 15:35:20 -04:00
commit e72b4959f9

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"`
} }