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: http_redirect.go
    path of file: ./repos/goa/dsl
    
    the code of the file until where you have to start completion: package dsl

import (
	"goa.design/goa/v3/eval"
	"goa.design/goa/v3/expr"
)

// Redirect indicates that HTTP requests reply to the request with a redirect.
// The logic is the same as the standard http package Redire
    
func Redirect(url string, code int) {
	redirect := &expr.HTTPRedirectExpr{
		URL:        url,
		StatusCode: code,
	}
	switch actual := eval.Current().(type) {
	case *expr.HTTPEndpointExpr:
		redirect.Parent = actual
		actual.Redirect = redirect
	case *expr.HTTPFileServerExpr:
		redirect.Parent = actual
		actual.Redirect = redirect
	default:
		eval.IncompatibleDSL()
	}
}