i wanna inject db into context because ez for meeee
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user