package player import "context" func contextOrBackground(ctx context.Context) context.Context { if ctx != nil { return ctx } return context.Background() }