create GroupList type and methods

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:42 -04:00
parent 4655483fb6
commit f5db8e64b3
+17
View File
@@ -0,0 +1,17 @@
package group
import (
"context"
)
type GroupList []*Group
func (groups GroupList) LoadOwners(ctx context.Context) error {
for _, g := range groups {
err := g.LoadOwner(ctx)
if err != nil {
return err
}
}
return nil
}