Add String function to AccountHandle
This commit is contained in:
parent
2eb90df659
commit
77b275130b
1 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,15 @@
|
||||||
package types
|
package types
|
||||||
|
|
||||||
import "net/url"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"net/url"
|
||||||
|
)
|
||||||
|
|
||||||
type AccountHandle struct {
|
type AccountHandle struct {
|
||||||
Name string
|
Name string
|
||||||
Host url.URL
|
Host url.URL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (a *AccountHandle) String() string {
|
||||||
|
return fmt.Sprintf("%s@%s", a.Name, a.Host.String())
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue