chore: change new_hono to Hono.new

This commit is contained in:
yangshangbo
2025-07-07 13:51:38 +08:00
parent aca60cb4fa
commit f039f24af1
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import net.http
import hono
fn main() {
mut app := hono.new_hono()
mut app := hono.Hono.new()
// 日志中间件
app.use(fn (mut c hono.Context, next fn (mut hono.Context) http.Response) http.Response {