mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
Migrated repository
.gitee | ||
.github | ||
g | ||
geg | ||
third | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
go.mod | ||
LICENSE | ||
README_ZH.MD | ||
README.MD | ||
RELEASE.MD | ||
TODO.MD | ||
version.go |
GoFrame
GF(GoFrame)
is a modular, loose-coupled and production-ready application development framework written in Go. Providing a series of core components and dozens of practical modules, such as: cache, logging, array/queue/set/map, timer/timing tasks, file/memory lock, object pool, validator, database ORM, etc. Supporting web server with graceful server, hot updates, multi-domain, multi-port, multi-service, HTTP/HTTPS, dynamic/hook routing, rewrite rules and many more features.
Installation
go get -u github.com/gogf/gf
or use go.mod
:
require github.com/gogf/gf latest
Limitation
golang version >= 1.9.2
Documentation
Architecture
Quick Start
package main
import (
"github.com/gogf/gf/g"
"github.com/gogf/gf/g/net/ghttp"
)
func main() {
s := g.Server()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Write("Hello World")
})
s.Run()
}
License
GF
is licensed under the MIT License, 100% free and open-source, forever.