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:
commit
e72b4959f9
1 changed files with 2 additions and 2 deletions
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue