linstrom/types/types.go
2024-01-29 17:10:00 +00:00

15 lines
201 B
Go

package types
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())
}