1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-10 21:00:54 +00:00
Beego/docs/en
Xuyuan Pang f26d81200b 笔误
2013-07-30 18:52:54 +08:00
..
images installation, incomplete quick start 2013-04-20 14:54:42 -04:00
API.md Sync documentation of English with Chinese version 2013-07-10 22:06:28 +08:00
HotUpdate.md Update: clean and fix docs markdown 2013-06-21 10:35:46 +02:00
Install.md Update: clean and fix docs markdown 2013-06-21 10:35:46 +02:00
Quickstart.md 笔误 2013-07-30 18:52:54 +08:00
README.md Update: clean and fix docs markdown 2013-06-21 10:35:46 +02:00
Supervisord.md Update: supervisord en docs 2013-06-21 15:47:58 +02:00
Tutorial.md Update: clean and fix docs markdown 2013-06-21 10:35:46 +02:00
Why.md Update: clean and fix docs markdown 2013-06-21 10:35:46 +02:00

Beego

Beego is a lightweight, open source, non-blocking and scalable web framework for the Go programming language. It's like tornado in Python. This web framework has already been using for building web server and tools in SNDA's CDN system. Documentation and downloads available at http://astaxie.github.com/beego

It has following main features:

  • Supports MVC model, you only need to focus on logic and implementation methods.
  • Supports websocket, use customized handlers to integrate sockjs.
  • Supports customized router rules, including regex and semanteme.
  • Session integration, supports memory, file, redis, mysql, etc.
  • Automated parsing user form, you can get data very easy.
  • Log level system, easy to record debugging and deployment logs.
  • Use configuration file (.ini) to customized your system.
  • Use built-in templates in Go, and it provides much more useful functions which are commonly used in web development.

The working principles of Beego as follows:

Beego is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

Simple example

The following example prints string "Hello world" to your browser, it shows how easy to build a web application with Beego.

package main

import (
	"github.com/astaxie/beego"
)

type MainController struct {
	beego.Controller
}

func (this *MainController) Get() {
	this.Ctx.WriteString("hello world")
}

func main() {
	beego.Router("/", &MainController{})
	beego.Run()
}

Handbook

Documentation

Go Walker