migrate-from-beego

command
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 3 Imported by: 0

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 AdaptNetHTTP adapter 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.All("/legacy/iam/*", zip.AdaptNetHTTP(beeApp.Handlers))

This example uses a stand-in http.Handler so the file builds without pulling beego — same adapter pattern in either case.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL