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
+3 -3
View File
@@ -210,13 +210,13 @@ pub fn (mut app Hono) clear_cache() {
app.context_hybrid_router.clear_cache()
}
pub fn new_hono() Hono {
pub fn Hono.new() Hono {
return Hono{
server: http.Server{}
routes: map[string]Hono{}
base_path: ''
context_router: ContextRouter{}
context_hybrid_router: ContextHybridRouter.new()
context_trie_router: ContextTrieRouter.new()
context_hybrid_router: ContextHybridRouter.new()
context_trie_router: ContextTrieRouter.new()
}
}