| 123456789101112131415161718192021 | package middlewareimport "context"type Option struct {	GenHttp         bool	NotAuth         bool	OperationRecord bool	Path            string}type httpOption struct{}func NewOptionContext(ctx context.Context, op *Option) context.Context {	return context.WithValue(ctx, httpOption{}, op)}func FromOptionContext(ctx context.Context) (*Option, bool) {	op, ok := ctx.Value(httpOption{}).(*Option)	return op, ok}
 |