2019-06-19 09:09:13 +08:00
# GoFrame
2018-11-30 20:38:53 +08:00
2019-06-19 09:09:13 +08:00
[![Go Doc](https://godoc.org/github.com/gogf/gf?status.svg)](https://godoc.org/github.com/gogf/gf/g#pkg-subdirectories)
[![Build Status](https://travis-ci.org/gogf/gf.svg?branch=master)](https://travis-ci.org/gogf/gf)
2019-06-22 22:06:13 +08:00
[![Go Report](https://goreportcard.com/badge/github.com/gogf/gf?v=1)](https://goreportcard.com/report/github.com/gogf/gf)
2019-03-08 09:03:32 +08:00
[![Code Coverage](https://codecov.io/gh/gogf/gf/branch/master/graph/badge.svg)](https://codecov.io/gh/gogf/gf/branch/master)
2019-04-07 22:03:04 +08:00
[![Production Ready](https://img.shields.io/badge/production-ready-blue.svg)](https://github.com/gogf/gf)
[![License](https://img.shields.io/github/license/gogf/gf.svg?style=flat)](https://github.com/gogf/gf)
2018-12-17 20:44:38 +08:00
2019-08-30 22:15:54 +08:00
English | [简体中文](README_ZH.MD)
2019-05-18 13:52:18 +08:00
2019-08-30 22:15:54 +08:00
`GF(GoFrame)` is a modular, full-featured and production-ready application development framework of golang. Providing a series of core components and dozens of practical modules, such as: memcache, configure, validator, logging, array/queue/set/map containers, timer/timing tasks, file/memory lock, object pool, database ORM, etc. Supporting web server integrated with router, cookie, session, middleware, logger, template, https, hooks, rewrites and many more features.
2018-08-06 12:59:08 +08:00
2019-05-18 13:52:18 +08:00
2019-06-25 23:17:14 +08:00
# Installation
```
2019-10-13 23:05:48 +08:00
go get -u -v github.com/gogf/gf
2018-08-06 23:05:07 +08:00
```
2019-08-30 22:15:54 +08:00
suggested using `go.mod`:
2018-12-22 21:50:47 +08:00
```
2019-02-02 16:18:25 +08:00
require github.com/gogf/gf latest
2018-12-22 21:50:47 +08:00
```
2019-06-25 23:17:14 +08:00
# Limitation
2018-11-30 20:37:28 +08:00
```
2019-12-04 18:48:13 +08:00
golang version >= 1.11
2019-06-25 23:17:14 +08:00
```
# Documentation
2018-11-30 20:37:28 +08:00
2019-06-25 23:17:14 +08:00
* [APIDoc](https://godoc.org/github.com/gogf/gf)
* [中文文档](https://goframe.org)
# Architecture
2018-11-20 23:26:58 +08:00
<div align=center>
2019-09-01 00:31:15 +08:00
<img src="https://goframe.org/images/arch.png?v=10"/>
2018-11-20 23:26:58 +08:00
</div>
2019-06-25 23:17:14 +08:00
# Quick Start
2018-11-20 23:26:58 +08:00
2018-04-19 11:08:09 +08:00
```go
package main
2018-05-18 15:55:27 +08:00
import (
2019-07-29 21:01:19 +08:00
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
2018-05-18 15:55:27 +08:00
)
2018-04-19 11:08:09 +08:00
func main() {
2018-05-18 15:55:27 +08:00
s := g.Server()
s.BindHandler("/", func(r *ghttp.Request) {
2018-08-06 12:57:03 +08:00
r.Response.Write("Hello World")
2018-04-19 11:08:09 +08:00
})
s.Run()
}
2018-11-30 20:37:28 +08:00
```
2019-07-09 10:23:25 +08:00
[More Features...](https://goframe.org/start/index)
2019-06-25 23:17:14 +08:00
# License
`GF` is licensed under the [MIT License](LICENSE), 100% free and open-source, forever.
# Donators
We currently accept donation by Alipay/WechatPay, please note your github/gitee account in your payment bill. If you like `GF`, why not [buy developer a cup of coffee](DONATOR.MD)?
# Thanks
<a href="https://www.jetbrains.com/?from=GoFrame"><img src="https://goframe.org/images/jetbrains.png" width="100" alt="JetBrains"/></a>
2018-12-27 09:49:50 +08:00
2019-06-25 23:17:14 +08:00
<!--
# Sponsor
We appreciate any kind of sponsorship for `GF` development. If you've got some interested, please contact john@goframe.org.
-->
2019-05-18 14:55:15 +08:00