carlhopf / beego

beego is an open-source, high-performance web framework for the Go programming language.

Home Page:https://beego.gocn.vip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

architecture

Beego is composed 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;

Please use RELEASE version, or master branch which contains the latest bug fix

We will remove the adapter package in v2.2.0 which will be released in Aug 2023

Quick Start

Old Doc - github New Doc Website Example

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

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/beego/beego/v2@latest

Create file hello.go

package main

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

func main() {
	web.Run()
}

Build and run

go build hello.go
./hello

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

About

beego is an open-source, high-performance web framework for the Go programming language.

https://beego.gocn.vip

License:Other


Languages

Language:Go 99.8%Language:Makefile 0.2%Language:Shell 0.0%Language:Smarty 0.0%