- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for MarshalJSON (5.61 sec)
-
cmd/xl-storage-format-v1.go
} type checksumInfoJSON struct { Name string `json:"name"` Algorithm string `json:"algorithm"` Hash string `json:"hash,omitempty"` } // MarshalJSON marshals the ChecksumInfo struct func (c ChecksumInfo) MarshalJSON() ([]byte, error) { info := checksumInfoJSON{ Name: fmt.Sprintf("part.%d", c.PartNumber), Algorithm: c.Algorithm.String(), Hash: hex.EncodeToString(c.Hash), }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 8.2K bytes - Viewed (0)