Files
show-rss/src/cmd/config.go
Bel LaPointe 0c5bb025bb thar we GO
2025-04-25 09:42:24 -06:00

19 lines
289 B
Go

package cmd
import (
"context"
"show-rss/src/cleanup"
"show-rss/src/db"
)
func Config(ctx context.Context) (context.Context, func(), error) {
ctx, err := db.Inject(ctx, "/tmp/f.db")
if err != nil {
return ctx, nil, err
}
return ctx, func() {
cleanup.Extract(ctx)()
}, nil
}