Output returns the output expression, or empty expression if output is not set.
()
| 368 | |
| 369 | // Output returns the output expression, or empty expression if output is not set. |
| 370 | func (m *Match) Output() ValueString { |
| 371 | if m.HasOutput() { |
| 372 | return *m.output |
| 373 | } |
| 374 | return ValueString{} |
| 375 | } |
| 376 | |
| 377 | // HasExplanation indicates whether the explanation field is set of the match. |
| 378 | func (m *Match) HasExplanation() bool { |