Header returns a git diff header of this fragment. See [File.String] for more details on this format.
()
| 78 | // Header returns a git diff header of this fragment. See [File.String] for |
| 79 | // more details on this format. |
| 80 | func (f *TextFragment) Header() string { |
| 81 | var hdr strings.Builder |
| 82 | newFormatter(&hdr).FormatTextFragmentHeader(f) |
| 83 | return hdr.String() |
| 84 | } |
| 85 | |
| 86 | // Validate checks that the fragment is self-consistent and appliable. Validate |
| 87 | // returns an error if and only if the fragment is invalid. |
no test coverage detected