Skip to content

Commit

Permalink
Doc method
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Aug 9, 2024
1 parent 598d74e commit 416fdd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api-s3-datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ type CompletePart struct {
ChecksumSHA256 string `xml:"ChecksumSHA256,omitempty"`
}

// Checksum will return the checksum for the given type.
// Will return the empty string if not set.
func (c CompletePart) Checksum(t ChecksumType) string {
switch {
case t.Is(ChecksumCRC32C):
Expand Down

0 comments on commit 416fdd5

Please sign in to comment.