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
|
||||
|
||||
import "net/url"
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
type AccountHandle struct {
|
||||
Name string
|
||||
Host url.URL
|
||||
}
|
||||
|
||||
func (a *AccountHandle) String() string {
|
||||
return fmt.Sprintf("%s@%s", a.Name, a.Host.String())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue