code: func (w *Writer) OnFooter(h plumbing.Hash) error {
  	w.checksum = h
  	w.finished = true
  	_, err := w.createIndex()
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // OnFooter implements packfile.Observer interface.