talira

Modular Go application framework: HTTP server, ORM, config, logging, caching and microservice governance, with a gf CLI

open sourceMITfree

GoFrame is a Go framework for building applications faster, made of independent modules you can use as a full application framework or import one at a time. It covers an application facade (g.Server(), g.DB(), g.Cfg()), networking (an HTTP server with routing and middleware, an HTTP client, TCP and UDP), data access (a driver-agnostic ORM with models, transactions, soft delete, sharding and hooks, plus Redis), and application services such as config, logging, caching, sessions, templates, cron and timers, with an abstraction layer for microservice governance whose implementations live in contrib. The gf CLI scaffolds and runs projects. It needs Go 1.25 or later and is MIT licensed.

Ways to install

Package managers

Problems it solves

  • I want an all-in-one Go framework with an ORM, config and logging built in
  • I need a Go web framework with a CLI that scaffolds projects
  • I want to build Go microservices with service governance support

Features

  • HTTP server with routing and middleware
  • Driver-agnostic ORM with transactions, soft delete and sharding
  • Redis client
  • Config, logging, caching, sessions, templates, cron and timers
  • Microservice governance abstractions with contrib implementations
  • gf CLI to scaffold and run projects
  • Use the whole framework or single packages

Alternatives

The same job

These do what GoFrame does.

  1. Beego A full-stack MVC web framework for building REST APIs, web apps and backend services in Go
  2. Fiber Express inspired web framework written in Go
  3. GoFr Opinionated Go framework for microservices with built-in observability and Kubernetes focus
  4. go-zero A cloud-native Go microservices framework with a code generation CLI
  5. Echo High performance, minimalist Go web framework
  6. Kratos Go microservices framework for the cloud-native era

Compare GoFrame with the top 3