烂翻译系列之Iris——API示例之无中间件的空白 Iris

Blank Iris without middleware by default  无中间件的空白 Iris

Use

使用

app := iris.New()

instead of

代替

// Default with "debug" Logger Level.
// Localization enabled on "./locales" directory
// and HTML templates on "./views" or "./templates" directory.
// It runs with the AccessLog on "./access.log",
// Recovery and Request ID middleware already attached.
app := iris.Default()

 

posted @ 2021-12-13 17:18  菜鸟吊思  阅读(38)  评论(0)    收藏  举报