Add String function to AccountHandle

This commit is contained in:
mStar aka a person 2024-01-29 17:10:00 +00:00
parent 2eb90df659
commit 77b275130b

View file

@ -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())
}