1package dsn
2
3import (
4 "net"
5)
6
7// NameIP represents a name and possibly IP, e.g. representing a connection destination.
8type NameIP struct {
9 Name string
10 IP net.IP
11}
12
13func (n NameIP) IsZero() bool {
14 return n.Name == "" && n.IP == nil
15}
16