This checks if the next middleware to be called is nil, and if so returns ServerFailure and an error. This makes the next calling more robust and saves some lines of code. Also prefix the error with the name of the middleware to aid in debugging. |
||
---|---|---|
.. | ||
cname.go | ||
cname_test.go | ||
dedup.go | ||
doc.go | ||
host.go | ||
host_test.go | ||
reverse.go | ||
reverse_test.go |