HasRule indicates whether the rule field is set on a match.
()
| 347 | |
| 348 | // HasRule indicates whether the rule field is set on a match. |
| 349 | func (m *Match) HasRule() bool { |
| 350 | return m.rule != nil |
| 351 | } |
| 352 | |
| 353 | // Rule returns the rule value, or nil if the rule is not set. |
| 354 | func (m *Match) Rule() *Rule { |
no outgoing calls