Closed zuozhehao closed 2 years ago
for k, v := arr { as := accessory.New(v.Conf, v.Type) _ = s.Container.AddAccessory(as) }
I add accessories in a loop, but I find that I don't know how to set a callback for each accessory.
Can someone help.
Please explain your issue in more detail. What kind of accessories are you creating?
Closed because of inactivity.
I add accessories in a loop, but I find that I don't know how to set a callback for each accessory.
Can someone help.