15 lines
201 B
Go
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())
|
|
}
|