1 2 3 4 5 6 7 8 9
package domain import "context" type Repository[T Entity] interface { All(context.Context) []T Find(context.Context, ID) T Save(context.Context, T) error }