beego mirror
Go to file
Ming Deng 093f976365
Merge pull request #4355 from flycash/develop
rename key world 'governor' to 'admin'
2020-12-13 19:36:23 +08:00
.github Add stale.yml 2020-09-19 23:54:33 +08:00
adapter rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
client fix issue #4331 2020-12-01 17:18:30 +08:00
core rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
server/web rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
task rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
test Refactor orm filter 2020-08-18 14:31:06 +00:00
.gitignore Fix UT 2020-08-05 07:25:34 +00:00
.travis.yml remove pkg directory; 2020-10-08 18:29:36 +08:00
CONTRIBUTING.md Remove scripts directory; update readme 2020-10-08 23:18:10 +08:00
LICENSE update all files License 2014-05-17 02:26:50 +08:00
README.md rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
build_info.go update doc 2020-12-12 22:30:44 +08:00
doc.go remove pkg directory; 2020-10-08 18:29:36 +08:00
go.mod Upgrade toml version 2020-10-14 00:25:31 +08:00
go.sum Upgrade toml version 2020-10-14 00:25:31 +08:00

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
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).