You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: juliet.go
    path of file: ./repos/plik/server/context
    
    the code of the file until where you have to start completion: package context

import (
	"net/http"
)

// Middleware is a constructor to close a Context into a middleware
type Middleware func(ctx *Context, next http.Handler) http.Handler

// Handler is a constructor
    
func (ch *ChainHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
	ctx := &Context{}

	// Build the context handler chain
	handler := ch.handler(ctx)
	chain := ch.chain
	for chain != nil {
		if chain.middleware != nil {
			handler = chain.middleware(ctx, handler)
		}
		chain = chain.parent
	}

	handler.ServeHTTP(resp, req)
}