gogf/gf

A powerful framework for faster, easier, and more efficient project development.

Go

13,284

6,385 commits

updated Oct 9, 2026

See the code

README

English | 简体中文

goframe logo

Go Reference GoFrame CI Code Coverage Production Ready License Ask DeepWiki

Release GitHub pull requests GitHub closed pull requests GitHub issues GitHub closed issues Stars Forks

GoFrame is a powerful framework for faster, easier, and more efficient project development. Use it as a full application framework, or pick individual components as needed.

Installation

GoFrame requires Go 1.23 or later.

In an existing module, add the framework:

go get -u github.com/gogf/gf/v2

Install the gf CLI:

go install github.com/gogf/gf/cmd/gf/v2@latest

Usage

Create main.go:

package main

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

func main() {
	s := g.Server()
	s.BindHandler("/", func(r *ghttp.Request) {
		r.Response.Write("Hello World!")
	})
	s.SetPort(8000)
	s.Run()
}

Run it:

go mod init hello
go mod tidy
go run main.go

Open http://127.0.0.1:8000.

To scaffold a project with the gf CLI:

gf init hello
cd hello && gf run main.go

Documentation

Contributors

💖 Thanks to all the contributors who made GoFrame possible 💖

goframe contributors

License

GoFrame is licensed under the MIT License, 100% free and open-source, forever.

framework
go
goframe
go-framework
golang
kubernetes
logging
microservice
opentelemetry
orm
tracing

gogf/gf

A powerful framework for faster, easier, and more efficient project development.

Go

13,284

6,385 commits

updated Oct 9, 2026

See the code

README

English | 简体中文

goframe logo

Go Reference GoFrame CI Code Coverage Production Ready License Ask DeepWiki

Release GitHub pull requests GitHub closed pull requests GitHub issues GitHub closed issues Stars Forks

GoFrame is a powerful framework for faster, easier, and more efficient project development. Use it as a full application framework, or pick individual components as needed.

Installation

GoFrame requires Go 1.23 or later.

In an existing module, add the framework:

go get -u github.com/gogf/gf/v2

Install the gf CLI:

go install github.com/gogf/gf/cmd/gf/v2@latest

Usage

Create main.go:

package main

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

func main() {
	s := g.Server()
	s.BindHandler("/", func(r *ghttp.Request) {
		r.Response.Write("Hello World!")
	})
	s.SetPort(8000)
	s.Run()
}

Run it:

go mod init hello
go mod tidy
go run main.go

Open http://127.0.0.1:8000.

To scaffold a project with the gf CLI:

gf init hello
cd hello && gf run main.go

Documentation

Contributors

💖 Thanks to all the contributors who made GoFrame possible 💖

goframe contributors

License

GoFrame is licensed under the MIT License, 100% free and open-source, forever.

framework
go
goframe
go-framework
golang
kubernetes
logging
microservice
opentelemetry
orm
tracing

Project health

Overall

4.8/10

Maintained

10/10

Code review

10/10

Contributors

10/10
OpenSSF Scorecard

Latest release

v1.16.9 · May 30, 2022

Releases this year

0

Significant stargazers

(top 24 of 26)

Herman Slatman

1,061 followers · starred Jul 2025

Gong Dewei

60 followers · starred Dec 2021

conghuhu

85 followers · starred Mar 2024

Geng Zhang

706 followers · starred Feb 2021