Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 6fbcde1

Browse files
Printing int as string instead of converting
1 parent 6752697 commit 6fbcde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

port/port.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func NewHostPort(hostport string) (HostPort, error) {
6565
}
6666

6767
func (hostport HostPort) String() string {
68-
return net.JoinHostPort(hostport.Host, string(hostport.Port))
68+
return net.JoinHostPort(hostport.Host, hostport.Port.String())
6969
}
7070

7171
func (hostport HostPort) Empty() bool {

0 commit comments

Comments
 (0)