code: func LoadIndexFile(path string) (*IndexFile, error) {
  	b, err := ioutil.ReadFile(path)
  	if err != nil {
  		return nil, err
  	}
  	return loadIndex(b)
  }
docs: // LoadIndexFile takes a file at the given path and returns an IndexFile object