Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dash (0.12 sec)

  1. docs/debugging/s3-check-md5/main.go

    	versions                       bool
    	insecure                       bool
    )
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    func main() {
    	flag.StringVar(&endpoint, "endpoint", "https://play.min.io", "S3 endpoint URL")
    	flag.StringVar(&accessKey, "access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    				return fmt.Errorf("size mismatch. Meta size: %d", ei.V2Obj.Size)
    			}
    		} else {
    			return err
    		}
    		if len(b) < 32 {
    			return fmt.Errorf("file %s too short", file)
    		}
    		// Trim hash. Fine for inline data, since only one block.
    		b = b[32:]
    
    		set := parityData[data]
    		if set == nil {
    			set = make(map[int][]byte)
    		}
    		set[idx] = b
    		parityData[data] = set
    
    		// Combine
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
Back to top