From 3b8d21dd0d45bbbdf2d7df864970eeddb28f4ff4 Mon Sep 17 00:00:00 2001 From: meiseayoung Date: Fri, 2 Jan 2026 22:05:12 +0800 Subject: [PATCH] fix: update import path to VPM package name (meiseayoung.hono) - Change all `import hono` to `import meiseayoung.hono` in code and docs - Ensure compatibility with VPM installation via `v install meiseayoung.hono` --- README.md | 10 +++++----- benchmark/usockets_server.v | 2 +- docs/ROUTE_GROUPING_CHANGELOG.md | 2 +- examples/auth_example.v | 2 +- examples/basic/example.v | 2 +- examples/benchmark_veb_vs_hono.v | 2 +- examples/cache_demo.v | 2 +- examples/middleware/example.v | 2 +- examples/picoev_example.v | 2 +- examples/redirect_demo.v | 2 +- examples/route_grouping/example.v | 2 +- examples/route_grouping/route_grouping_example.v | 2 +- examples/route_grouping/route_grouping_example_v2.v | 2 +- examples/server_hono.v | 2 +- examples/server_hono_picoev.v | 2 +- examples/stream_demo.v | 2 +- examples/stream_test.v | 2 +- examples/test_server.v | 2 +- examples/usockets_example.v | 2 +- tests/benchmark_optimized.v | 2 +- tests/benchmark_vweb_vs_hono.v | 2 +- tests/performance_test_main.v | 2 +- tests/simple_stream_test.v | 2 +- tests/test_cache_fix.v | 2 +- tests/test_cache_hit_rate.v | 2 +- tests/test_comprehensive_suite.v | 2 +- tests/test_config_management.v | 2 +- tests/test_dynamic_routes_advanced.v | 2 +- tests/test_dynamic_routes_comprehensive.v | 2 +- tests/test_dynamic_routes_edge_cases.v | 2 +- tests/test_dynamic_routes_performance_simple.v | 2 +- tests/test_dynamic_routes_real_world_simple.v | 2 +- tests/test_dynamic_routes_showcase.v | 2 +- tests/test_enhanced_fast_router.v | 2 +- tests/test_enhanced_vs_original_performance.v | 2 +- tests/test_error_handling.v | 2 +- tests/test_fast_cache_optimization.v | 2 +- tests/test_fast_router_benchmark.v | 2 +- tests/test_final_integration.v | 2 +- tests/test_final_optimization_benchmark.v | 2 +- tests/test_final_performance_showcase.v | 2 +- tests/test_integration_comprehensive.v | 2 +- tests/test_integration_simple.v | 2 +- tests/test_large_file_optimization.v | 2 +- tests/test_logger_system.v | 2 +- tests/test_middleware_optimization.v | 2 +- tests/test_migration_complete.v | 2 +- tests/test_picoev_server.v | 2 +- tests/test_redirect_functionality.v | 2 +- tests/test_regex_cache_performance.v | 2 +- tests/test_regex_cache_verification.v | 2 +- tests/test_router_deep_profiling.v | 2 +- tests/test_router_million_stable.v | 2 +- tests/test_router_optimization.v | 2 +- tests/test_router_performance_comparison.v | 2 +- tests/test_router_performance_profiling.v | 2 +- tests/test_router_precise_timing.v | 2 +- tests/test_router_regex_cache.v | 2 +- tests/test_router_simple_profiling.v | 2 +- tests/test_security_validation.v | 2 +- tests/test_simple_fast_router.v | 2 +- tests/test_simple_suite.v | 2 +- tests/test_unit_suite.v | 2 +- tests/test_usockets_server.v | 2 +- tests/test_usockets_server_simple.v | 2 +- usockets/README.md | 4 ++-- 66 files changed, 71 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index 90d4248..8604f88 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ The uSockets library and libuv are pre-compiled and included in the `usockets/li ### Using uSockets Backend ```v -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() @@ -114,7 +114,7 @@ See [benchmark/README.md](benchmark/README.md) for performance benchmarks and [u ```v import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() @@ -146,7 +146,7 @@ fn main() { ```v import net.http import time -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() @@ -172,7 +172,7 @@ fn main() { ```v import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() @@ -200,7 +200,7 @@ fn main() { ```v import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/benchmark/usockets_server.v b/benchmark/usockets_server.v index 9e2e0f1..05897e6 100644 --- a/benchmark/usockets_server.v +++ b/benchmark/usockets_server.v @@ -7,7 +7,7 @@ module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/docs/ROUTE_GROUPING_CHANGELOG.md b/docs/ROUTE_GROUPING_CHANGELOG.md index 24f0a07..9b82476 100644 --- a/docs/ROUTE_GROUPING_CHANGELOG.md +++ b/docs/ROUTE_GROUPING_CHANGELOG.md @@ -11,7 +11,7 @@ #### 使用方式 ```v -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/examples/auth_example.v b/examples/auth_example.v index f8d425b..84dbb00 100644 --- a/examples/auth_example.v +++ b/examples/auth_example.v @@ -1,6 +1,6 @@ module main -import hono +import meiseayoung.hono import net.http import x.json2 diff --git a/examples/basic/example.v b/examples/basic/example.v index 9b6a7ca..0e689ef 100644 --- a/examples/basic/example.v +++ b/examples/basic/example.v @@ -4,7 +4,7 @@ module main import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/examples/benchmark_veb_vs_hono.v b/examples/benchmark_veb_vs_hono.v index b963852..97a6053 100644 --- a/examples/benchmark_veb_vs_hono.v +++ b/examples/benchmark_veb_vs_hono.v @@ -9,7 +9,7 @@ module main import time -import hono +import meiseayoung.hono import net.http // ============================================ diff --git a/examples/cache_demo.v b/examples/cache_demo.v index a77af45..51e2b9f 100644 --- a/examples/cache_demo.v +++ b/examples/cache_demo.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time fn main() { diff --git a/examples/middleware/example.v b/examples/middleware/example.v index 03490b7..83d3fc2 100644 --- a/examples/middleware/example.v +++ b/examples/middleware/example.v @@ -3,7 +3,7 @@ module main import net.http import time -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/examples/picoev_example.v b/examples/picoev_example.v index b0cf77e..963ff3b 100644 --- a/examples/picoev_example.v +++ b/examples/picoev_example.v @@ -1,7 +1,7 @@ module main import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/examples/redirect_demo.v b/examples/redirect_demo.v index 329ecbb..585964d 100644 --- a/examples/redirect_demo.v +++ b/examples/redirect_demo.v @@ -1,6 +1,6 @@ module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/examples/route_grouping/example.v b/examples/route_grouping/example.v index d8ec646..c4e6e52 100644 --- a/examples/route_grouping/example.v +++ b/examples/route_grouping/example.v @@ -2,7 +2,7 @@ module main import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/examples/route_grouping/route_grouping_example.v b/examples/route_grouping/route_grouping_example.v index d0ad7fb..4959f8e 100644 --- a/examples/route_grouping/route_grouping_example.v +++ b/examples/route_grouping/route_grouping_example.v @@ -12,7 +12,7 @@ // ``` import net.http -import hono +import meiseayoung.hono fn main() { println('🚀 V-Hono 路由分组示例启动中...') diff --git a/examples/route_grouping/route_grouping_example_v2.v b/examples/route_grouping/route_grouping_example_v2.v index d4a7911..b80f474 100644 --- a/examples/route_grouping/route_grouping_example_v2.v +++ b/examples/route_grouping/route_grouping_example_v2.v @@ -2,7 +2,7 @@ // 演示新功能:子应用中间件继承、all() 方法、notFound/onError 处理器 import net.http -import hono +import meiseayoung.hono fn main() { println('🚀 V-Hono 路由分组增强示例启动中...') diff --git a/examples/server_hono.v b/examples/server_hono.v index a03d28a..99f1528 100644 --- a/examples/server_hono.v +++ b/examples/server_hono.v @@ -4,7 +4,7 @@ module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/examples/server_hono_picoev.v b/examples/server_hono_picoev.v index 2691a48..8c162bc 100644 --- a/examples/server_hono_picoev.v +++ b/examples/server_hono_picoev.v @@ -4,7 +4,7 @@ module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/examples/stream_demo.v b/examples/stream_demo.v index ed38b2b..53ea272 100644 --- a/examples/stream_demo.v +++ b/examples/stream_demo.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http import os diff --git a/examples/stream_test.v b/examples/stream_test.v index afcdcf2..f64168a 100644 --- a/examples/stream_test.v +++ b/examples/stream_test.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http import os import time diff --git a/examples/test_server.v b/examples/test_server.v index 6f3e2f8..58aec15 100644 --- a/examples/test_server.v +++ b/examples/test_server.v @@ -1,7 +1,7 @@ // 测试服务器 - 用于高并发测试 module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/examples/usockets_example.v b/examples/usockets_example.v index 1401d96..691fe8e 100644 --- a/examples/usockets_example.v +++ b/examples/usockets_example.v @@ -1,7 +1,7 @@ module main import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/tests/benchmark_optimized.v b/tests/benchmark_optimized.v index 7db3ea3..c56e0a4 100644 --- a/tests/benchmark_optimized.v +++ b/tests/benchmark_optimized.v @@ -3,7 +3,7 @@ module main import time -import hono +import meiseayoung.hono import net.http const iterations = 100_000 diff --git a/tests/benchmark_vweb_vs_hono.v b/tests/benchmark_vweb_vs_hono.v index 0f95e2b..f882ef0 100644 --- a/tests/benchmark_vweb_vs_hono.v +++ b/tests/benchmark_vweb_vs_hono.v @@ -4,7 +4,7 @@ module main import time -import hono +import meiseayoung.hono import net.http // ============================================ diff --git a/tests/performance_test_main.v b/tests/performance_test_main.v index 5e3d724..a8bef60 100644 --- a/tests/performance_test_main.v +++ b/tests/performance_test_main.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http import time diff --git a/tests/simple_stream_test.v b/tests/simple_stream_test.v index 9e87561..6eb6d89 100644 --- a/tests/simple_stream_test.v +++ b/tests/simple_stream_test.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http import os import time diff --git a/tests/test_cache_fix.v b/tests/test_cache_fix.v index 71430b6..21c0ce3 100644 --- a/tests/test_cache_fix.v +++ b/tests/test_cache_fix.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono fn main() { println('=== 测试缓存内存泄漏修复 ===') diff --git a/tests/test_cache_hit_rate.v b/tests/test_cache_hit_rate.v index de5c10f..647c3fd 100644 --- a/tests/test_cache_hit_rate.v +++ b/tests/test_cache_hit_rate.v @@ -1,7 +1,7 @@ // 测试缓存命中率 module main -import hono +import meiseayoung.hono import net.http import time diff --git a/tests/test_comprehensive_suite.v b/tests/test_comprehensive_suite.v index c6d10b6..17109fa 100644 --- a/tests/test_comprehensive_suite.v +++ b/tests/test_comprehensive_suite.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import strings import net.http diff --git a/tests/test_config_management.v b/tests/test_config_management.v index 13aa300..b9ee8d8 100644 --- a/tests/test_config_management.v +++ b/tests/test_config_management.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import os fn test_default_config() { diff --git a/tests/test_dynamic_routes_advanced.v b/tests/test_dynamic_routes_advanced.v index c8c0a17..adef38d 100644 --- a/tests/test_dynamic_routes_advanced.v +++ b/tests/test_dynamic_routes_advanced.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/tests/test_dynamic_routes_comprehensive.v b/tests/test_dynamic_routes_comprehensive.v index b0471b5..54dd32d 100644 --- a/tests/test_dynamic_routes_comprehensive.v +++ b/tests/test_dynamic_routes_comprehensive.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_dynamic_routes_edge_cases.v b/tests/test_dynamic_routes_edge_cases.v index 33760c7..1744b6b 100644 --- a/tests/test_dynamic_routes_edge_cases.v +++ b/tests/test_dynamic_routes_edge_cases.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_dynamic_routes_performance_simple.v b/tests/test_dynamic_routes_performance_simple.v index 3063d8d..1b36d60 100644 --- a/tests/test_dynamic_routes_performance_simple.v +++ b/tests/test_dynamic_routes_performance_simple.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_dynamic_routes_real_world_simple.v b/tests/test_dynamic_routes_real_world_simple.v index 8ecd7aa..ad12c02 100644 --- a/tests/test_dynamic_routes_real_world_simple.v +++ b/tests/test_dynamic_routes_real_world_simple.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http import time diff --git a/tests/test_dynamic_routes_showcase.v b/tests/test_dynamic_routes_showcase.v index 3e30147..5e453f7 100644 --- a/tests/test_dynamic_routes_showcase.v +++ b/tests/test_dynamic_routes_showcase.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_enhanced_fast_router.v b/tests/test_enhanced_fast_router.v index b20ce1b..d3759e2 100644 --- a/tests/test_enhanced_fast_router.v +++ b/tests/test_enhanced_fast_router.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_enhanced_vs_original_performance.v b/tests/test_enhanced_vs_original_performance.v index eb7e4bd..52d8cd1 100644 --- a/tests/test_enhanced_vs_original_performance.v +++ b/tests/test_enhanced_vs_original_performance.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_error_handling.v b/tests/test_error_handling.v index d98b0ad..8c851bf 100644 --- a/tests/test_error_handling.v +++ b/tests/test_error_handling.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/tests/test_fast_cache_optimization.v b/tests/test_fast_cache_optimization.v index 38d48b1..6aca211 100644 --- a/tests/test_fast_cache_optimization.v +++ b/tests/test_fast_cache_optimization.v @@ -2,7 +2,7 @@ // 验证高性能缓存的正确性和性能 module main -import hono +import meiseayoung.hono import net.http import time diff --git a/tests/test_fast_router_benchmark.v b/tests/test_fast_router_benchmark.v index 4ee82fd..99384d3 100644 --- a/tests/test_fast_router_benchmark.v +++ b/tests/test_fast_router_benchmark.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_final_integration.v b/tests/test_final_integration.v index 072ebac..1e7b362 100644 --- a/tests/test_final_integration.v +++ b/tests/test_final_integration.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_final_optimization_benchmark.v b/tests/test_final_optimization_benchmark.v index d37f473..1612006 100644 --- a/tests/test_final_optimization_benchmark.v +++ b/tests/test_final_optimization_benchmark.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_final_performance_showcase.v b/tests/test_final_performance_showcase.v index 0373edd..1d55e56 100644 --- a/tests/test_final_performance_showcase.v +++ b/tests/test_final_performance_showcase.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_integration_comprehensive.v b/tests/test_integration_comprehensive.v index e370937..2f13068 100644 --- a/tests/test_integration_comprehensive.v +++ b/tests/test_integration_comprehensive.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http import os diff --git a/tests/test_integration_simple.v b/tests/test_integration_simple.v index 796643d..cfc7cb9 100644 --- a/tests/test_integration_simple.v +++ b/tests/test_integration_simple.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_large_file_optimization.v b/tests/test_large_file_optimization.v index 4e16d34..989ff63 100644 --- a/tests/test_large_file_optimization.v +++ b/tests/test_large_file_optimization.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import os fn main() { diff --git a/tests/test_logger_system.v b/tests/test_logger_system.v index 95b42de..2c6ea09 100644 --- a/tests/test_logger_system.v +++ b/tests/test_logger_system.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import os import time diff --git a/tests/test_middleware_optimization.v b/tests/test_middleware_optimization.v index f07ece0..8ba5345 100644 --- a/tests/test_middleware_optimization.v +++ b/tests/test_middleware_optimization.v @@ -4,7 +4,7 @@ // 2. 中间件预计算(启动时排序) // 3. 复用 cache key -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_migration_complete.v b/tests/test_migration_complete.v index 216e737..28b9040 100644 --- a/tests/test_migration_complete.v +++ b/tests/test_migration_complete.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_picoev_server.v b/tests/test_picoev_server.v index fa6a94d..25d0072 100644 --- a/tests/test_picoev_server.v +++ b/tests/test_picoev_server.v @@ -3,7 +3,7 @@ module main -import hono +import meiseayoung.hono import net.http fn main() { diff --git a/tests/test_redirect_functionality.v b/tests/test_redirect_functionality.v index 6239e07..1f4de66 100644 --- a/tests/test_redirect_functionality.v +++ b/tests/test_redirect_functionality.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import net.http // 重定向功能测试 diff --git a/tests/test_regex_cache_performance.v b/tests/test_regex_cache_performance.v index 623928c..b2077c6 100644 --- a/tests/test_regex_cache_performance.v +++ b/tests/test_regex_cache_performance.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_regex_cache_verification.v b/tests/test_regex_cache_verification.v index 81692e9..4a850b9 100644 --- a/tests/test_regex_cache_verification.v +++ b/tests/test_regex_cache_verification.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_deep_profiling.v b/tests/test_router_deep_profiling.v index 1e1a936..887a64e 100644 --- a/tests/test_router_deep_profiling.v +++ b/tests/test_router_deep_profiling.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http import regex diff --git a/tests/test_router_million_stable.v b/tests/test_router_million_stable.v index 21d7a44..9d9aa84 100644 --- a/tests/test_router_million_stable.v +++ b/tests/test_router_million_stable.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_optimization.v b/tests/test_router_optimization.v index 9bc2297..d1e620b 100644 --- a/tests/test_router_optimization.v +++ b/tests/test_router_optimization.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_performance_comparison.v b/tests/test_router_performance_comparison.v index dec3eea..effab73 100644 --- a/tests/test_router_performance_comparison.v +++ b/tests/test_router_performance_comparison.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http import regex diff --git a/tests/test_router_performance_profiling.v b/tests/test_router_performance_profiling.v index 9df0ea9..a10a0e3 100644 --- a/tests/test_router_performance_profiling.v +++ b/tests/test_router_performance_profiling.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_precise_timing.v b/tests/test_router_precise_timing.v index 7650f8c..5ef4cf4 100644 --- a/tests/test_router_precise_timing.v +++ b/tests/test_router_precise_timing.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_regex_cache.v b/tests/test_router_regex_cache.v index af8a0db..e9e1aba 100644 --- a/tests/test_router_regex_cache.v +++ b/tests/test_router_regex_cache.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_router_simple_profiling.v b/tests/test_router_simple_profiling.v index 8a49f55..24333ca 100644 --- a/tests/test_router_simple_profiling.v +++ b/tests/test_router_simple_profiling.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_security_validation.v b/tests/test_security_validation.v index 4569972..ff847d2 100644 --- a/tests/test_security_validation.v +++ b/tests/test_security_validation.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono fn main() { println('=== 测试输入验证和路径安全 ===') diff --git a/tests/test_simple_fast_router.v b/tests/test_simple_fast_router.v index 8a72746..79e88a8 100644 --- a/tests/test_simple_fast_router.v +++ b/tests/test_simple_fast_router.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import time import net.http diff --git a/tests/test_simple_suite.v b/tests/test_simple_suite.v index 2bf3168..d528365 100644 --- a/tests/test_simple_suite.v +++ b/tests/test_simple_suite.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import os // 简化的测试统计 diff --git a/tests/test_unit_suite.v b/tests/test_unit_suite.v index e60fb49..76a7caf 100644 --- a/tests/test_unit_suite.v +++ b/tests/test_unit_suite.v @@ -1,4 +1,4 @@ -import hono +import meiseayoung.hono import os import time import strings diff --git a/tests/test_usockets_server.v b/tests/test_usockets_server.v index b5c6fbb..099e44c 100644 --- a/tests/test_usockets_server.v +++ b/tests/test_usockets_server.v @@ -2,7 +2,7 @@ module main import net.http -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() diff --git a/tests/test_usockets_server_simple.v b/tests/test_usockets_server_simple.v index a6b763e..acefc6e 100644 --- a/tests/test_usockets_server_simple.v +++ b/tests/test_usockets_server_simple.v @@ -1,7 +1,7 @@ // uSockets 简化测试服务器 - 与外层 main.v 配置一致 module main -import hono +import meiseayoung.hono import net.http import x.json2 diff --git a/usockets/README.md b/usockets/README.md index 00fd1ba..7ce954c 100644 --- a/usockets/README.md +++ b/usockets/README.md @@ -16,7 +16,7 @@ Based on benchmark tests (200 connections, 100K requests): ## Usage ```v -import hono +import meiseayoung.hono fn main() { mut app := hono.Hono.new() @@ -74,7 +74,7 @@ usockets/ ```v // Custom configuration -app.listen_usockets_with_config(hono.UsocketsConfig{ +app.listen_usockets_with_config(meiseayoung.hono.UsocketsConfig{ port: 8080 host: '0.0.0.0' keepalive_timeout: 30