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