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

22 lines
294 B
Go
Raw Normal View History

2022-12-28 22:22:36 -05:00
package adapter
2023-01-05 00:23:25 -05:00
type Capabilities []Capability
2022-12-28 22:22:36 -05:00
type Capability struct {
ID string
Name string
}
2023-01-05 00:23:25 -05:00
func (caps *Capabilities) IsCapableOf(capability string) bool {
var can bool = false
for _, capb := range *caps {
if capb.ID == capability {
can = true
break
}
}
return can
}