Rename Address Group Constant

This commit is contained in:
Samuel Lorch 2023-03-02 00:04:43 +01:00
parent b09875fd85
commit 16a9fec479

View file

@ -21,7 +21,7 @@ const (
Host AddressType = iota Host AddressType = iota
Range Range
Network Network
Group AddressGroup
) )
func (t AddressType) String() string { func (t AddressType) String() string {
@ -33,7 +33,7 @@ func (t *AddressType) FromString(input string) AddressType {
"host": Host, "host": Host,
"range": Range, "range": Range,
"network": Network, "network": Network,
"group": Group, "group": AddressGroup,
}[input] }[input]
} }