mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
adding uri to string method
This commit is contained in:
parent
1283263b70
commit
64da894e7e
1 changed files with 5 additions and 0 deletions
5
uri.go
5
uri.go
|
|
@ -134,6 +134,11 @@ func (u *URI) Normalize() string {
|
|||
return fmt.Sprintf("%s://%s:%d", scheme, u.host, u.port)
|
||||
}
|
||||
|
||||
// String returns the address as a string.
|
||||
func (u URI) String() string {
|
||||
return fmt.Sprintf("%s://%s:%d", u.scheme, u.host, u.port)
|
||||
}
|
||||
|
||||
// Equals returns true if the checked URI is equivalent to this URI.
|
||||
func (u URI) Equals(other *URI) bool {
|
||||
if other == nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue