4 Star 21 Fork 6

Gitee 极速下载 / Beego-Framework

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/astaxie/beego
克隆/下载
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

Beego Build Status GoDoc Foundation Go Report Card

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.

architecture

Beego is compos of four parts:

  1. Base modules: including log module, config module, governor module;
  2. Task: is used for running timed tasks or periodic tasks;
  3. Client: including ORM module, httplib module, cache module;
  4. Server: including web module. We will support gRPC in the future;

Quick Start

Officail website

Example

If you could not open official website, go to beedoc

Web Application

Http Request

Create hello directory, cd hello directory

mkdir hello
cd hello

Init module

go mod init

Download and install

go get github.com/astaxie/beego@v2.0.0

Create file hello.go

package main

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

func main() {
	web.Run()
}

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 (http://www.apache.org/licenses/LICENSE-2.0.html).

仓库评论 ( 0 )

你可以在登录后,发表评论

简介

beego是一个用Go开发的应用框架,思路来自于tornado,路由设计来源于sinatra,支持如下特性 MVC REST 智能路由 日志调试 配置管理 模板自动渲染 layou 展开 收起
Go
取消

发行版

暂无发行版

Beego-Framework

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/mirrors/Beego-Framework.git
git@gitee.com:mirrors/Beego-Framework.git
mirrors
Beego-Framework
Beego-Framework
develop

搜索帮助