0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-12 00:22:59 +02:00

create GroupList type and methods

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-12-25 15:40:50 -05:00
parent 6ea74b1a08
commit 300170c6f0
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
}