i wanna inject db into context because ez for meeee

main
Bel LaPointe 2025-02-09 16:45:59 -07:00
parent 7f4a079d95
commit fbaaa1303f
1 changed files with 4 additions and 0 deletions

View File

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