🔥 Removed unused App domain

This commit is contained in:
Maxim Lebedev 2023-08-07 04:55:01 +06:00
parent 3be568fc16
commit b5a91b48ae
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 0 additions and 36 deletions

View File

@ -1,36 +0,0 @@
package domain
import "net/url"
type App struct {
Logo []*url.URL
URL []*url.URL
Name []string
}
// GetName safe returns first name, if any.
func (a App) GetName() string {
if len(a.Name) == 0 {
return ""
}
return a.Name[0]
}
// GetURL safe returns first URL, if any.
func (a App) GetURL() *url.URL {
if len(a.URL) == 0 {
return nil
}
return a.URL[0]
}
// GetLogo safe returns first logo, if any.
func (a App) GetLogo() *url.URL {
if len(a.Logo) == 0 {
return nil
}
return a.Logo[0]
}