func NewReplacer(r *http.Request, rr *ResponseRecorder, emptyValue string) Replacer {
	rep := &replacer{
		request:          r,
		responseRecorder: rr,
		emptyValue:       emptyValue,
		replacedValues:   make(map[string]string),
	}

	return rep
}
// NewReplacer makes a new replacer based on r and rr which
// are used for request and response placeholders, respectively.
// Request placeholders are created immediately, whereas
// response placeholders are not created until Replace()
// is invoked. rr may be nil if it is not available.
// emptyValue should be the string that is used in place
// of empty string (can still be empty string).
NewReplacer makes a new replacer based on r and rr which
are used for request and response placeholders, respectively.
Request placeholders are created immediately, whereas
response placeholders are not created until Replace()
is invoked. rr may be nil if it is not available.
emptyValue should be the string that is used in place
of empty string (can still be empty string).
// NewReplacer makes a new replacer based on r and rr which // are used for request and response placeholders respectively . // Request placeholders are created immediately whereas // response placeholders are not created until Replace () // is invoked . rr may be nil if it is not available . // emptyValue should be the string that is used in place // of empty string ( can still be empty string ) .
func NewReplacer(r *http.Request, rr *ResponseRecorder, emptyValue string) Replacer {
	rep := &replacer{
		request:          r,
		responseRecorder: rr,
		emptyValue:       emptyValue,
		replacedValues:   make(map[string]string),
	}
	return rep
}
func NewReplacer ( r * http . Request , rr * ResponseRecorder , emptyValue string ) Replacer { rep := & replacer { request : r , responseRecorder : rr , emptyValue : emptyValue , replacedValues : make ( map [ string ] string ) , } return rep }
NewReplacer makes a new replacer based on r and rr which
are used for request and response placeholders, respectively.
NewReplacer makes a new replacer based on r and rr which are used for request and response placeholders respectively .