{"id":13470029,"url":"https://github.com/go-macaron/macaron","last_synced_at":"2025-05-13T21:12:06.087Z","repository":{"id":18482113,"uuid":"21677533","full_name":"go-macaron/macaron","owner":"go-macaron","description":"Package macaron is a high productive and modular web framework in Go.","archived":false,"fork":false,"pushed_at":"2025-04-19T20:12:31.000Z","size":538,"stargazers_count":3526,"open_issues_count":8,"forks_count":286,"subscribers_count":140,"default_branch":"main","last_synced_at":"2025-05-06T16:10:52.254Z","etag":null,"topics":["go","macaron","web-framework"],"latest_commit_sha":null,"homepage":"https://go-macaron.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-macaron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-07-10T03:13:30.000Z","updated_at":"2025-04-27T15:05:33.000Z","dependencies_parsed_at":"2023-12-25T04:31:18.453Z","dependency_job_id":"a3038c34-9c0d-497a-8c93-ad6813474852","html_url":"https://github.com/go-macaron/macaron","commit_stats":{"total_commits":250,"total_committers":27,"mean_commits":9.25925925925926,"dds":0.504,"last_synced_commit":"73a8e6d7380638948b943b7475fd6973ed0a8bed"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fmacaron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fmacaron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fmacaron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fmacaron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-macaron","download_url":"https://codeload.github.com/go-macaron/macaron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029008,"owners_count":22002284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","macaron","web-framework"],"created_at":"2024-07-31T16:00:21.716Z","updated_at":"2025-05-13T21:12:01.077Z","avatar_url":"https://github.com/go-macaron.png","language":"Go","readme":"# Macaron\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/go-macaron/macaron/Go?logo=github\u0026style=for-the-badge)](https://github.com/go-macaron/macaron/actions?query=workflow%3AGo)\n[![codecov](https://img.shields.io/codecov/c/github/go-macaron/macaron/master?logo=codecov\u0026style=for-the-badge)](https://codecov.io/gh/go-macaron/macaron)\n[![GoDoc](https://img.shields.io/badge/GoDoc-Reference-blue?style=for-the-badge\u0026logo=go)](https://pkg.go.dev/gopkg.in/macaron.v1?tab=doc)\n[![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge\u0026logo=sourcegraph)](https://sourcegraph.com/github.com/go-macaron/macaron)\n\n![Macaron Logo](https://raw.githubusercontent.com/go-macaron/macaron/v1/macaronlogo.png)\n\nPackage macaron is a high productive and modular web framework in Go.\n\n## 📣 Announcement\n\n- If you're considering using Macaron, you may want to take a look at [Flamego](https://flamego.dev/) first, which is [the successor of the Macaron](https://flamego.dev/faqs.html#what-is-the-idea-behind-this-other-than-macaron-martini).\n- That means Macaron is officially in the maintenance mode, and no major features will be added to Macaron.\n\n## Getting Started\n\nThe minimum requirement of Go is **1.18**.\n\nTo install Macaron:\n\n\tgo get gopkg.in/macaron.v1\n\nThe very basic usage of Macaron:\n\n```go\npackage main\n\nimport \"gopkg.in/macaron.v1\"\n\nfunc main() {\n\tm := macaron.Classic()\n\tm.Get(\"/\", func() string {\n\t\treturn \"Hello world!\"\n\t})\n\tm.Run()\n}\n```\n\n## Features\n\n- Powerful routing with suburl.\n- Flexible routes combinations.\n- Unlimited nested group routers.\n- Directly integrate with existing services.\n- Dynamically change template files at runtime.\n- Allow to use in-memory template and static files.\n- Easy to plugin/unplugin features with modular design.\n- Handy dependency injection powered by [inject](https://github.com/codegangsta/inject).\n- Better router layer and less reflection make faster speed.\n\n## Middlewares\n\nMiddlewares allow you easily plugin/unplugin features for your Macaron applications.\n\nThere are already many [middlewares](https://github.com/go-macaron) to simplify your work:\n\n- render - Go template engine\n- static - Serves static files\n- [gzip](https://github.com/go-macaron/gzip) - Gzip compression to all responses\n- [binding](https://github.com/go-macaron/binding) - Request data binding and validation\n- [i18n](https://github.com/go-macaron/i18n) - Internationalization and Localization\n- [cache](https://github.com/go-macaron/cache) - Cache manager\n- [session](https://github.com/go-macaron/session) - Session manager\n- [csrf](https://github.com/go-macaron/csrf) - Generates and validates csrf tokens\n- [captcha](https://github.com/go-macaron/captcha) - Captcha service\n- [pongo2](https://github.com/go-macaron/pongo2) - Pongo2 template engine support\n- [sockets](https://github.com/go-macaron/sockets) - WebSockets channels binding\n- [bindata](https://github.com/go-macaron/bindata) - Embed binary data as static and template files\n- [toolbox](https://github.com/go-macaron/toolbox) - Health check, pprof, profile and statistic services\n- [oauth2](https://github.com/go-macaron/oauth2) - OAuth 2.0 backend\n- [authz](https://github.com/go-macaron/authz) - ACL/RBAC/ABAC authorization based on Casbin\n- [switcher](https://github.com/go-macaron/switcher) - Multiple-site support\n- [method](https://github.com/go-macaron/method) - HTTP method override\n- [permissions2](https://github.com/xyproto/permissions2) - Cookies, users and permissions\n- [renders](https://github.com/go-macaron/renders) - Beego-like render engine(Macaron has built-in template engine, this is another option)\n- [piwik](https://github.com/veecue/piwik-middleware) - Server-side piwik analytics\n\n## Use Cases\n\n- [Gogs](https://gogs.io): A painless self-hosted Git Service\n- [Grafana](http://grafana.org/): The open platform for beautiful analytics and monitoring\n- [Peach](https://peachdocs.org): A modern web documentation server\n- [Go Walker](https://gowalker.org): Go online API documentation\n- [Critical Stack Intel](https://intel.criticalstack.com/): A 100% free intel marketplace from Critical Stack, Inc.\n\n## Getting Help\n\n- [API Reference](https://gowalker.org/gopkg.in/macaron.v1)\n- [Documentation](https://go-macaron.com)\n- [FAQs](https://go-macaron.com/docs/faqs)\n\n## Credits\n\n- Basic design of [Martini](https://github.com/go-martini/martini).\n- Logo is modified by [@insionng](https://github.com/insionng) based on [Tribal Dragon](http://xtremeyamazaki.deviantart.com/art/Tribal-Dragon-27005087).\n\n## License\n\nThis project is under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for the full license text.\n","funding_links":[],"categories":["开源类库","Go","4000","Web框架","Open source library","Web Frameworks","Utility","Repositories","web框架`web 框架`","web框架"],"sub_categories":["Web 框架","Web Framework","Utility/Miscellaneous","HTTP Clients","实用程序/Miscellaneous","Advanced Console UIs","Fail injection","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流","版本控制`版本控制相关库`","版本控制"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-macaron%2Fmacaron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-macaron%2Fmacaron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-macaron%2Fmacaron/lists"}