code: func (h *Hook) write() error {
  	return ioutil.WriteFile(h.Path(), []byte(h.Contents+"\n"), 0755)
  }
docs: // write writes the contents of this Hook to disk, appending a newline at the
  // end, and sets the mode to octal 0755. It writes to disk unconditionally, and
  // returns at any error.