Beego: Web framework for Go applications
MVC framework for Go with integrated ORM and routing.
Learn more about beego
Beego is a web framework written in Go that implements the MVC architectural pattern with support for RESTful API development. The framework includes built-in modules for ORM, session handling, logging, caching, configuration management, and HTTP utilities. It provides annotation-based routing, namespace support, and automatic API documentation generation. Common use cases include building enterprise web applications, RESTful APIs, and backend services in Go.
Batteries-Included Framework
Bundles ORM, session management, caching, logging, and configuration as core modules without external dependencies. Provides a cohesive stack for web and API development with unified patterns across all components.
Annotation-Based Routing
Define routes using annotations directly in controller code with namespace organization support. Eliminates separate configuration files and keeps routing logic colocated with handler implementation.
Automatic API Documentation
Generates API documentation directly from application code without manual maintenance. Keeps API specifications synchronized with implementation as code changes.
package main
import (
"github.com/beego/beego/v2/server/web"
)
type MainController struct {
web.Controller
}
func (c *MainController) Get() {
c.Ctx.WriteString("Hello, Beego!")
}
func main() {
web.Router("/", &MainController{})
web.Run()
}Maintenance release with dependency updates and Windows file-handling fix; no breaking changes reported.
- –Update go-sqlite3 to 1.14.27 and go-redis to 9.5.5 for latest patches.
- –Windows users gain secure file opening via utils.OpenFileSecure replacing syscall.O_NOFOLLOW.
Patches file-open security issue on Windows by introducing utils.SecureOpen to handle missing O_NOFOLLOW support.
- –Use utils.SecureOpen for file operations on Windows to prevent symlink-following vulnerabilities.
- –No breaking changes; existing code continues to work but consider migrating file opens for hardened security.
Patches CVE-2021-27116 and CVE-2021-27117; fixes Oracle ORM column query mismatch causing runtime errors.
- –Update immediately to resolve two CVEs (CVE-2021-27116, CVE-2021-27117); release notes do not specify vulnerability details.
- –Oracle users: dbbase.GetColumns now correctly queries three columns, fixing destination argument mismatch crashes.
Top in Backend & APIs
Related Repositories
Discover similar tools and frameworks used by developers
graphiql
Browser-based GraphQL IDE with language service tooling.
rails
Convention-driven Ruby framework for full-stack web applications.
gson
Reflection-based Java library for JSON object conversion.
evolution-api
Node.js REST API for programmatic WhatsApp control.
whatsmeow
Go client library for WhatsApp web multidevice protocol.