Redis – Does WithContext method need to panic if context is nil?
I want to write a WithContext method for a struct and am taking inspiration from net/http's Request.WithContext. My question is: why does Request.WithContext panic if the context is nil: func (r *Request) WithContext(ctx context.Context) *Request { if ctx == nil…