i wanna inject db into context because ez for meeee

This commit is contained in:
Bel LaPointe
2025-02-09 16:45:59 -07:00
parent 7f4a079d95
commit fbaaa1303f

View File

@@ -9,6 +9,10 @@ type Storage interface {
PlayerIDs(context.Context) ([]int, error) PlayerIDs(context.Context) ([]int, error)
} }
func NewDB(ctx context.Context) (DB, error) {
return DB{}, io.EOF
}
type DB struct{} type DB struct{}
func (db DB) PlayerIDs(ctx context.Context) ([]int, error) { func (db DB) PlayerIDs(ctx context.Context) ([]int, error) {