Documentation
¶
Overview ¶
migrate-from-beego example — beego → zip migration via http.Handler adapter. beego.BeeApp exposes Handlers as an http.Handler-compatible surface; the same Mount() entry that fronted chi handles beego too.
In a real port:
import (
"github.com/beego/beego/v2/server/web"
"github.com/zap-proto/zip"
)
beeApp := web.NewHttpSever() // your existing beego app
zipApp := zip.New(zip.Config{AppName: "iam"})
zipApp.Mount("/legacy/iam", beeApp.Handlers)
This example uses a stand-in http.Handler so the file builds without pulling beego — same Mount() pattern in either case.
Click to show internal directories.
Click to hide internal directories.