[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115549":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":13,"stars30d":13,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":31,"discoverSource":32},115549,"mino","hainuoli\u002Fmino","hainuoli","A progressive Go toolkit. Small packages, familiar APIs.","https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc",null,"Go",53,2,1,0,1.43,"MIT License",false,"main",[21,22,23,24,25,26,27],"go","golang","http","middleware","net-http","router","toolkit","2026-11-25 02:05:45","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fhainuoli\u002Fmino-doc\u002Fmain\u002Fpublic\u002Fbrand\u002Fsvg\u002Fmino-wordmark-white.svg\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fhainuoli\u002Fmino-doc\u002Fmain\u002Fpublic\u002Fbrand\u002Fsvg\u002Fmino-wordmark-black.svg\" alt=\"Mino\" width=\"280\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n  \u003Cstrong>Start with one package. Grow at your own pace.\u003C\u002Fstrong>\u003Cbr>\n  A progressive Go toolkit. Small packages, familiar APIs.\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n  \u003Ca href=\"README.md\">English\u003C\u002Fa>\n  &nbsp;·&nbsp;\n  \u003Ca href=\"README.zh.md\">简体中文\u003C\u002Fa>\n  &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\">Documentation\u003C\u002Fa>\n  &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fhainuoli\u002Fmino\">API\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ctable align=\"center\">\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Progressive\u003C\u002Fstrong>\u003Cbr>Start with a utility package. Grow into a service.\u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Adopt on demand\u003C\u002Fstrong>\u003Cbr>Use each package independently. Compose them as needed.\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Lightweight\u003C\u002Fstrong>\u003Cbr>A compact implementation. Only the Go standard library at runtime.\u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Fast\u003C\u002Fstrong>\u003Cbr>Fast route matching. Low-overhead middleware composition.\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Intuitive\u003C\u002Fstrong>\u003Cbr>Standard HTTP types, familiar contexts, and Go error chains.\u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\u003Cstrong>Delightful DX\u003C\u002Fstrong>\u003Cbr>Clean, consistent APIs for binding, validation, and responses.\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Quick start\n\nRequires Go 1.23+.\n\n```sh\ngo get github.com\u002Fhainuoli\u002Fmino\u002Frest\n```\n\n```go\nmux := rest.NewMux()\n\nmux.Get(\"\u002F\", func(w http.ResponseWriter, r *http.Request) {\n\thttpx.Ok(w, \"Hello, Mino!\")\n})\n\nhttp.ListenAndServe(\":8080\", mux)\n```\n\n[Run the complete example →](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fgetting-started.mdx) · [Explore progressive adoption →](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fprogressive-adoption.mdx)\n\n## Bring your existing handlers\n\nReplace the `http.ServeMux` constructor and keep your registrations.\n\n```diff\n- mux := http.NewServeMux()\n+ mux := rest.NewMux()\n\n mux.HandleFunc(\"GET \u002Fusers\u002F{id}\", getUser)\n```\n\nKeep your handlers, middleware, and `r.PathValue`. Enable path cleaning, escaped-path matching, and slash redirects as your existing service requires.\n\n[ServeMux migration guide →](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fmigration.mdx)\n\n## Performance\n\nMedian **ns\u002Fop**. Lower is better.\n\n| Workload | Mino | Gin | Chi | go-zero router |\n| --- | ---: | ---: | ---: | ---: |\n| Static route | **85.5** | 101.2 | 220.3 | 123.4 |\n| One path parameter | 183.0 | **127.0** | 343.5 | 385.2 |\n| Three path parameters | 274.5 | **197.6** | 499.1 | 679.2 |\n| 1,000 static routes | **131.3** | 170.6 | 355.1 | 5,328.0 |\n| Five middleware layers | **254.9** | 279.1 | 410.7 | 304.4 |\n| Route + JSON response | **178.5** | 217.9 | 316.5 | 219.5 |\n\nApple M4 · macOS arm64 · Go 1.25.4 · 2026-11-15. Five 1-second runs, `-cpu=1`.\n\n\u003Cdetails>\n\u003Csummary>Benchmark setup and parameter-route cost\u003C\u002Fsummary>\n\nGin v1.12.0 · Chi v5.5.0 · go-zero v1.10.3.\n\nIn-process `ServeHTTP` benchmarks with identical response work and no default middleware. go-zero uses its standalone router. Network and business logic are excluded.\n\nMino writes parameters through `Request.SetPathValue` so handlers can use `r.PathValue`. For these fresh requests, Go 1.25.4 initializes a parameter map; Gin reuses a pooled parameter slice. This accounts for Mino's additional parameter-storage allocations.\n\n[Methodology, allocation analysis, and raw results →](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fbenchmarks.mdx)\n\n\u003C\u002Fdetails>\n\n## Small footprint\n\n**86.6 KiB of source. Zero third-party runtime dependencies.**\n\nAll six packages total **2,003 production code lines**. In a minimal HTTP server, the Mino router adds **88 KiB** over the standard-library baseline.\n\n\u003Cdetails>\n\u003Csummary>Source and binary measurements\u003C\u002Fsummary>\n\n| Production source | Code lines | Size |\n| --- | ---: | ---: |\n| Core utilities | 283 | 11.7 KiB |\n| Router + middleware composition | 1,417 | 59.8 KiB |\n| HTTP helpers | 303 | 15.2 KiB |\n| **All six packages** | **2,003** | **86.6 KiB** |\n\nCode lines exclude comments and blank lines. Source size includes comments and whitespace. Tests, examples, and tools are excluded from both counts.\n\n| Minimal HTTP server | Binary size |\n| --- | ---: |\n| `net\u002Fhttp` baseline | 5.30 MiB |\n| Mino router | 5.39 MiB |\n\nGo 1.25.4 · linux\u002Famd64 · CGO disabled · `-trimpath -ldflags='-s -w'`. Both binaries include the Go runtime.\n\n[Fixtures and measurement details →](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fbenchmarks.mdx)\n\n\u003C\u002Fdetails>\n\n## Explore Mino\n\n[Multipart uploads and middleware](docs\u002Fuploads.md) · [Upload example](examples\u002Fupload\u002Fmain.go)\n\n[Getting started](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fgetting-started.mdx) · [Packages](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc\u002Fblob\u002Fmain\u002Fcontent\u002Fdocs\u002Fen\u002Fpackages.mdx) · [Guides and examples](https:\u002F\u002Fgithub.com\u002Fhainuoli\u002Fmino-doc) · [API reference](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fhainuoli\u002Fmino)\n\n[Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [MIT License](LICENSE)\n","Mino 是一个渐进式 Go 服务开发工具包，提供轻量、独立可组合的 HTTP 相关组件。核心功能包括高性能路由（支持路径参数、路径清洗与重定向）、标准库兼容的中间件机制、简洁的响应封装（如 httpx.Ok）及零依赖运行时（仅基于 Go 标准库）。其设计强调按需采用：可从单个工具包起步，逐步扩展为完整 Web 服务，同时无缝迁移现有 http.ServeMux 项目。适用于构建中小型 API 服务、微服务网关或需要灵活演进架构的 Go 后端系统。","2026-11-24 04:51:19","CREATED_QUERY"]