add Addr.Hostname() and Addr.Port()
This commit is contained in:
parent
73998a9403
commit
6621ccf47e
|
@ -46,6 +46,14 @@ func (a *Addr) Network() string {
|
|||
return a.addr + ":" + strconv.Itoa(a.port)
|
||||
}
|
||||
|
||||
func (a *Addr) Port() int {
|
||||
return a.port
|
||||
}
|
||||
|
||||
func (a *Addr) Hostname() string {
|
||||
return a.addr
|
||||
}
|
||||
|
||||
func (a *Addr) Scheme() Scheme {
|
||||
return a.scheme
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue