# Functions
New return panic reporter middleware
When panic occurs, that panic will be reported sing reporter function, the error will be generated using https://pkg.go.dev/github.com/payfazz/go-errors/v2 so you can use StackTrace function to get where the panic occurs
if reporter is nil, then every panic will be printed to stderr.