1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-12-04 14:46:37 -05:00
neonmodem/system/adapter/adapter.go
2023-01-05 00:23:25 -05:00

22 lines
294 B
Go

package adapter
type Capabilities []Capability
type Capability struct {
ID string
Name string
}
func (caps *Capabilities) IsCapableOf(capability string) bool {
var can bool = false
for _, capb := range *caps {
if capb.ID == capability {
can = true
break
}
}
return can
}