code: func (h *editHeader) writeTo(w io.Writer, editMode EditMode) error {
  	if editMode == ApplyEditMode {
  		fmt.Fprint(w, `# Please edit the 'last-applied-configuration' annotations below.
  # Lines beginning with a '#' will be ignored, and an empty file will abort the edit.
  #
  `)
  	} else {
  		fmt.Fprint(w, `# Please edit the object below. Lines beginning with a '#' will be ignored,
  # and an empty file will abort the edit. If an error occurs while saving this file will be
  # reopened with the relevant failures.
  #
  `)
  	}
  
  	for _, r := range h.reasons {
  		if len(r.other) > 0 {
  			fmt.Fprintf(w, "# %s:\n", hashOnLineBreak(r.head))
  		} else {
  			fmt.Fprintf(w, "# %s\n", hashOnLineBreak(r.head))
  		}
  		for _, o := range r.other {
  			fmt.Fprintf(w, "# * %s\n", hashOnLineBreak(o))
  		}
  		fmt.Fprintln(w, "#")
  	}
  	return nil
  }
docs: // writeTo outputs the current header information into a stream