0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-05 01:21:17 +02:00

create GroupList type and methods

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-12-25 15:40:50 -05:00
parent 4655483fb6
commit f5db8e64b3
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

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
}