HasRule indicates whether the rule field is set on a match.
()
| 389 | |
| 390 | // HasRule indicates whether the rule field is set on a match. |
| 391 | func (m *Match) HasRule() bool { |
| 392 | return m.rule != nil |
| 393 | } |
| 394 | |
| 395 | // Rule returns the rule value, or nil if the rule is not set. |
| 396 | func (m *Match) Rule() *Rule { |
no outgoing calls