|
|
2 hete | |
|---|---|---|
| .. | ||
| FLAMEGO_MIGRATION_SUMMARY.md | 2 hete | |
| README_FLAMEGO_MIGRATION.md | 2 hete | |
| database_schema.md | 2 éve | |
| flamego_migration_checklist.md | 2 hete | |
| flamego_migration_examples.md | 2 hete | |
| flamego_quick_reference.md | 2 hete | |
| import_locale.md | 2 éve | |
| local_development.md | 2 éve | |
| macaron_to_flamego_migration.md | 2 hete | |
This directory contains comprehensive documentation for migrating Gogs from Macaron to Flamego.
| Document | Purpose | Best For |
|---|---|---|
| SUMMARY | Decision making | Management, stakeholders |
| Migration Guide | Understanding approach | Tech leads, architects |
| Code Examples | Implementation reference | Developers during coding |
| Checklist | Execution tracking | Project managers, developers |
| Quick Reference | Quick lookups | All developers during migration |
✅ Yes - see FLAMEGO_MIGRATION_SUMMARY.md
📋 See macaron_to_flamego_migration.md
🔍 See flamego_quick_reference.md
💻 See flamego_migration_examples.md
✅ See flamego_migration_checklist.md
Phase 1: Dependencies [1 day] ████
Phase 2: Core Framework [2-3 days] ████████
Phase 3: Context System [2-3 days] ████████
Phase 4: Form Binding [2 days] ████
Phase 5: Route Handlers [7 days] ████████████████████
Phase 6: Testing [4 days] ████████████
Phase 7: Cleanup [2 days] ████
Phase 8: Deployment [2 days] ████
─────────
Total: 20-25 days
| Feature | Macaron | Flamego | Status |
|---|---|---|---|
| Core framework | ✅ | ✅ | Full parity |
| Routing | ✅ | ✅ | Enhanced in Flamego |
| Middleware | ✅ | ✅ | All available |
| Session | ✅ | ✅ | Full parity |
| CSRF | ✅ | ✅ | Full parity |
| Cache | ✅ | ✅ | Full parity |
| i18n | ✅ | ✅ | Full parity |
| Forms | ✅ | ✅ | Full parity |
| Templates | ✅ | ✅ | Full parity |
| Toolbox | ✅ | ⚠️ | Easy to replace |
Overall: ✅ 99% feature parity (only toolbox needs custom code)
Core setup: 10 files
Route handlers: 100+ files
Forms: 6 files
Tests: 50+ files
Documentation: 10+ files
─────────
Total: ~180-200 files
| Risk Level | Description | Mitigation |
|---|---|---|
| 🟢 Low | Technical feasibility | Clear migration path documented |
| 🟡 Medium | Time commitment | 3-4 weeks allocated |
| 🟡 Medium | Testing burden | Comprehensive test plan included |
| 🟢 Low | Rollback difficulty | Easy git revert, backup plan ready |
| 🟢 Low | Missing features | All features available |
✅ All tests pass
✅ Performance equal or better
✅ No security regressions
✅ No functionality lost
✅ Zero critical bugs (first 2 weeks)
// Before
import "gopkg.in/macaron.v1"
// After
import "github.com/flamego/flamego"
// Before
m.Get("/:username/:repo", handler)
// After
f.Get("/<username>/<repo>", handler)
// Before
func Handler(c *macaron.Context) { }
// After
func Handler(c flamego.Context) { }
// Before
username := c.Params(":username")
// After
username := c.Param("username")
| Document | Size | Last Updated | Status |
|---|---|---|---|
| FLAMEGO_MIGRATION_SUMMARY.md | 10 KB | 2026-01-25 | ✅ Complete |
| macaron_to_flamego_migration.md | 19 KB | 2026-01-25 | ✅ Complete |
| flamego_migration_examples.md | 27 KB | 2026-01-25 | ✅ Complete |
| flamego_migration_checklist.md | 17 KB | 2026-01-25 | ✅ Complete |
| flamego_quick_reference.md | 15 KB | 2026-01-25 | ✅ Complete |
| Total | 88 KB | Ready for use |
These documents are part of the Gogs project and follow the same license.
If you find errors or have improvements:
Ready to start? → Begin with FLAMEGO_MIGRATION_SUMMARY.md