meowlib/servercard.go

13 lines
270 B
Go
Raw Normal View History

2024-01-12 23:17:34 +01:00
package meowlib
func (sc *ServerCard) GetUid() string {
if len(sc.Login) > 0 || len(sc.Password) > 0 {
return sc.Login + ":" + sc.Password + "@" + sc.Url
}
return sc.Url
2024-01-12 23:17:34 +01:00
}
func (sc *ServerCard) IsSame(sc1 *ServerCard) bool {
return sc.GetUid() == sc1.GetUid()
}