We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06957d commit 1d071c0Copy full SHA for 1d071c0
1 file changed
net/addr.go
@@ -94,3 +94,14 @@ func (a Addr) RemoveScheme() Addr {
94
func (a Addr) GetScheme() string {
95
return a.scheme
96
}
97
+
98
+// GetHostname returns the hostname
99
+func (a Addr) GetHostname() string {
100
+ return a.hostname
101
+}
102
103
+// SetHostname sets hostname
104
+func (a Addr) SetHostname(hostname string) Addr {
105
+ a.hostname = hostname
106
+ return a
107
0 commit comments