diff --git a/types/types.go b/types/types.go index 0f6462c..c83caae 100644 --- a/types/types.go +++ b/types/types.go @@ -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()) +}