mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 17:03:47 +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
|
||
|
}
|