MCPcopy
hub / github.com/beego/beego

github.com/beego/beego @v2.3.10 sqlite

repository ↗ · DeepWiki ↗ · release v2.3.10 ↗
4,524 symbols 15,388 edges 363 files 2,408 documented · 53%
README

Beego Test Go Report Card Go Reference

Beego is used for rapid development of enterprise application in Go, including RESTful APIs, web apps and backend services.

It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.

Quick Start

Kindly remind that sometimes the HTTPS certificate is expired, you may get some NOT SECURE warning

Web Application

Create hello directory, cd hello directory

mkdir hello
cd hello

Init module

go mod init

Download and install

go get github.com/beego/beego/v2@latest

Create file hello.go

package main

import "github.com/beego/beego/v2/server/web"

func main() {
    web.Run()
}

Download required dependencies

go mod tidy

Build and run

go build hello.go
./hello

Go to http://localhost:8080

Congratulations! You've just built your first beego app.

Features

Modules

Community

License

beego source code is licensed under the Apache Licence, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.html).

Extension points exported contracts — how you extend this code

TableNameI (Interface)
TableNameI is usually used by model when you custom your table name, please implement this interfaces for example: typ [6 …
client/orm/types.go
Logger (Interface)
Logger defines the behavior of a log provider. [11 implementers]
core/logs/log.go
Validator (Interface)
Validator interface [14 implementers]
core/validation/validators.go
Config (Interface)
Config is the adapter interface for parsing config file to get raw data to Configer. [6 implementers]
core/config/config.go
Store (Interface)
Store contains all data for one session process with specific id. [13 implementers]
server/web/session/session.go
Cache (Interface)
Cache interface contains all behaviors for cache adapter. usage: cache.Register("file",cache.NewFileCache) // this ope [5 …
client/cache/cache.go
HealthChecker (Interface)
HealthChecker health checker interface [4 implementers]
core/admin/healthcheck.go
RequestCondition (Interface)
(no doc) [5 implementers]
client/httplib/mock/mock_condition.go

Core symbols most depended-on inside this repo

WriteString
called by 221
client/orm/internal/buffers/buffers.go
String
called by 217
client/orm/qb.go
Error
called by 165
core/logs/log.go
ServeHTTP
called by 117
server/web/router.go
Close
called by 111
client/orm/types.go
Filter
called by 110
client/orm/types.go
Error
called by 101
server/web/context/response.go
Get
called by 92
server/web/session/session.go

Shape

Method 2,413
Function 1,523
Struct 419
Interface 69
TypeAlias 53
FuncType 47

Languages

Go100%

Modules by API surface

client/orm/types.go183 symbols
client/orm/internal/models/models_fields.go105 symbols
core/validation/validators.go104 symbols
server/web/controller.go100 symbols
server/web/router_test.go91 symbols
client/orm/orm_test.go76 symbols
server/web/router.go70 symbols
client/orm/models_test.go70 symbols
server/web/server.go68 symbols
task/task.go66 symbols
core/logs/log.go66 symbols
server/web/context/input.go61 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

filippo.io/edwards25519v1.1.0 · 1×
github.com/Knetic/govaluatev3.0.1-0.20171022003 · 1×
github.com/beego/x2jv0.0.0-2013122020513 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/bits-and-blooms/bitsetv1.8.0 · 1×
github.com/bradfitz/gomemcachev0.0.0-2025040321515 · 1×
github.com/casbin/casbinv1.9.1 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/cloudflare/golz4v0.0.0-2024091614061 · 1×
github.com/coreos/go-semverv0.3.1 · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add beego \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact