1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-14 20:48:40 +00:00

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