String prints out a string representation of this Include directive. Note included Config files are not printed as part of this representation.
()
| 773 | // String prints out a string representation of this Include directive. Note |
| 774 | // included Config files are not printed as part of this representation. |
| 775 | func (inc *Include) String() string { |
| 776 | equals := " " |
| 777 | if inc.hasEquals { |
| 778 | equals = " = " |
| 779 | } |
| 780 | line := fmt.Sprintf("%sInclude%s%s", strings.Repeat(" ", int(inc.leadingSpace)), equals, strings.Join(inc.directives, " ")) |
| 781 | if inc.Comment != "" { |
| 782 | line += " #" + inc.Comment |
| 783 | } |
| 784 | return line |
| 785 | } |
| 786 | |
| 787 | var matchAll *Pattern |
| 788 |