type Rule … func (r Rule) String() string { … } // NewRule return empty rules. func NewRule() *Rule { … } // NewRulePortRange creates rule sport/dport range. func NewRulePortRange(start, end uint16) *RulePortRange { … } type RulePortRange … // NewRuleUIDRange creates rule uid range. func NewRuleUIDRange(start, end uint32) *RuleUIDRange { … } type RuleUIDRange …