first commit

This commit is contained in:
yangshangbo
2025-04-10 18:14:01 +08:00
commit 8b18de9693
26 changed files with 270858 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module hono
fn init() {
is_match, _ := match_path_with_regex('/api/v1/user', '/api/v1/:user_id')
assert is_match == true
is_match2, reg2 := match_path_with_regex('/api/v1/abc/user', '/api/**/user')
println('reg2: ${reg2.query}')
assert is_match2 == true
is_match3, reg := match_path_with_regex('/users/123/posts/456/comments', '/users/**')
println('reg: ${reg.query}')
assert is_match3 == true
println('all tests passed')
}