Output returns the output expression, or empty expression if output is not set.
()
| 326 | |
| 327 | // Output returns the output expression, or empty expression if output is not set. |
| 328 | func (m *Match) Output() ValueString { |
| 329 | if m.HasOutput() { |
| 330 | return *m.output |
| 331 | } |
| 332 | return ValueString{} |
| 333 | } |
| 334 | |
| 335 | // HasExplanation indicates whether the explanation field is set of the match. |
| 336 | func (m *Match) HasExplanation() bool { |