mox/dsn/nameip.go
Mechiel Lukkien cb229cb6cf
mox!
2023-01-30 14:27:06 +01:00

15 lines
241 B
Go

package dsn
import (
"net"
)
// NameIP represents a name and possibly IP, e.g. representing a connection destination.
type NameIP struct {
Name string
IP net.IP
}
func (n NameIP) IsZero() bool {
return n.Name == "" && n.IP == nil
}