linstrom/types/types.go

16 lines
201 B
Go
Raw Normal View History

package types
2024-01-29 17:10:00 +00:00
import (
"fmt"
"net/url"
)
type AccountHandle struct {
Name string
Host url.URL
}
2024-01-29 17:10:00 +00:00
func (a *AccountHandle) String() string {
return fmt.Sprintf("%s@%s", a.Name, a.Host.String())
}