Middleware is a block code when we call it before or after http request in proccess. Middleware usually made per functions, example: Middleware authentication, logging, and gzip compression, etc.
Middleware making in go is very simple, just used method .Use() belong object echo for middleware registrations.
Ok so create new folder project main.go, and follow this code
Next, create two middleware, middlewareOne & middlewareTwo, it displays log.
Registration two middlewares in above, this is example code.