Node.js Express 可以插入一个没有挂载路径的中间件,它会针对每个请求执行。有没有办法在 GO 中做到这一点?
var app = express();
// a middleware with no mount path; gets executed for every request to the app
app.use(function (req, res, next) {
console.log('Time:', Date.now());
next();
});
慕妹3242003
相关分类