|
|
2 minggu lalu | |
|---|---|---|
| .. | ||
| FLAMEGO_MIGRATION_SUMMARY.md | 2 minggu lalu | |
| README_FLAMEGO_MIGRATION.md | 2 minggu lalu | |
| database_schema.md | 2 tahun lalu | |
| flamego_migration_checklist.md | 2 minggu lalu | |
| flamego_migration_examples.md | 2 minggu lalu | |
| flamego_quick_reference.md | 2 minggu lalu | |
| import_locale.md | 2 tahun lalu | |
| local_development.md | 2 tahun lalu | |
| macaron_to_flamego_migration.md | 2 minggu lalu | |
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