code: func Verify(in io.Reader) (*raft.SnapshotMeta, error) {
  	// Wrap the reader in a gzip decompressor.
  	decomp, err := gzip.NewReader(in)
  	if err != nil {
  		return nil, fmt.Errorf("failed to decompress snapshot: %v", err)
  	}
  	defer decomp.Close()
  
  	// Read the archive, throwing away the snapshot data.
  	var metadata raft.SnapshotMeta
  	if err := read(decomp, &metadata, ioutil.Discard); err != nil {
  		return nil, fmt.Errorf("failed to read snapshot file: %v", err)
  	}
  	return &metadata, nil
  }
docs: // Verify takes the snapshot from the reader and verifies its contents.