GoFrame bundles HTTP serving, ORM, config, logging, caching, and observability hooks. Use it whole or import individual packages.
Overview
GoFrame is a Go development framework meant to accelerate building web applications and services. A top-level facade exposes servers, databases, and configuration through convenient entry points while underlying packages remain usable on their own.
Core modules include ghttp for routing, middleware, static files, WebSocket, and graceful restart; gdb as a driver-agnostic ORM with models, transactions, and hooks; gredis for Redis clients; and os-layer services for configuration hot reload, leveled logging, caches, sessions, templates, and cron scheduling.
Service governance packages define interfaces for registry discovery, load balancing, OpenTelemetry tracing, OpenAPI generation, and metrics abstractions, with concrete backends living under contrib for etcd, Consul, Nacos, OTLP exporters, database drivers, and gRPC extensions.
Utility libraries add concurrent containers, codecs for JSON and YAML, validation and conversion helpers, encryption primitives, and i18n. The gf CLI scaffolds projects, generates DAO and controller code from databases and APIs, and supports cross-platform builds. Documentation is published on official and mirror sites.
Key features
- HTTP server with middleware stack
- Driver-agnostic ORM and Redis client
- Hot-reload configuration and logging
- OpenTelemetry tracing integration
- OpenAPI document generation
- Concurrent container utilities
- contrib database and registry modules
- gf CLI code generation toolchain
Use cases
- Enterprise Go web APIs
- Microservices with service discovery
- Rapid CRUD from database codegen
- Observable services with OTLP export
- Modular imports without full framework