mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 00:43:48 +03:00
15 lines
241 B
Go
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
|
|
}
|