├── .gitattributes ├── .gitignore ├── LICENSE ├── ReadMe.md ├── doc_basic ├── 01.GoFrame介绍.md ├── 01.goframe介绍 │ ├── arch.png │ ├── goframe.png │ ├── image-20250703205213040.png │ └── image-20250704154255333.png ├── 02.GoFrame环境搭建.md ├── 02.goframe环境搭建 │ ├── image-20200308224453465.png │ ├── image-20250704163022453.png │ ├── image-20250704193058129.png │ ├── image-20250704193236103.png │ ├── image-20250704193334714.png │ ├── image-20250704193723730.png │ └── image-20250706172642164.png ├── 03.GoFrame的Web服务介绍.md ├── 03.goframe的WEB服务介绍 │ ├── image-20200316235850132-1941201.png │ ├── image-20200316235911263-1941204-1941393.png │ ├── image-20200316235911263-1941204.png │ ├── image-20250707011517596.png │ ├── image-20250707151318321.png │ └── 浏览器访问后端流程.excalidraw ├── 04.GoFrame请求与响应.md ├── 05.GoFrame路由注册.md ├── 06.GoFrame中间件.md ├── 06.GoFrame中间件 │ ├── 06middleware.excalidraw │ ├── image-20250708100950640.png │ ├── image-20250708101437776.png │ └── middleware.png ├── 07.GoFrame的HTTP客户端.md ├── 08.GoFrame配置管理.md ├── 09.GoFrame日志管理.md ├── 10.GoFrame数据库.md ├── 11.GoFrameRedis.md ├── 12.GoFrame常用工具.md ├── ReadMe.md └── docker │ ├── .env │ ├── compose.yaml │ └── init.sql ├── example_basic ├── 02.hello │ ├── hello │ │ ├── go.mod │ │ └── hello.go │ └── web │ │ ├── go.mod │ │ └── main.go ├── 03.web │ ├── api.http │ ├── config │ │ └── config.yaml │ ├── go.mod │ ├── main.go │ └── public │ │ ├── hello.html │ │ └── index.html ├── 04.request │ ├── api.http │ ├── config │ │ └── config.yaml │ ├── go.mod │ ├── main.go │ └── public │ │ ├── hello.html │ │ └── index.html ├── 05.router │ ├── api.http │ ├── config.yaml │ ├── go.mod │ └── main.go ├── 06.middleware │ ├── api.http │ ├── config.yaml │ ├── go.mod │ └── main.go ├── 07.client │ ├── client_test.go │ ├── config.yaml │ ├── go.mod │ └── main.go ├── 08.config │ ├── api.http │ ├── config │ │ └── config.yaml │ ├── configTest │ │ ├── config1.yaml │ │ └── config2.yaml │ ├── config_test.go │ ├── go.mod │ └── main.go ├── 09.glog │ ├── config │ │ └── config.yaml │ ├── go.mod │ └── main.go ├── 10.database │ ├── config │ │ └── config.yaml │ ├── db.sql │ ├── db_test.go │ └── go.mod ├── 11.redis │ ├── config │ │ └── config.yaml │ ├── go.mod │ └── redis_test.go └── 12.tools │ ├── go.mod │ └── tools_test.go └── resources └── img ├── opensource-pay.jpg ├── qq.jpg └── wechat.png /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/LICENSE -------------------------------------------------------------------------------- /ReadMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/ReadMe.md -------------------------------------------------------------------------------- /doc_basic/01.GoFrame介绍.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/01.GoFrame介绍.md -------------------------------------------------------------------------------- /doc_basic/01.goframe介绍/arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/01.goframe介绍/arch.png -------------------------------------------------------------------------------- /doc_basic/01.goframe介绍/goframe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/01.goframe介绍/goframe.png -------------------------------------------------------------------------------- /doc_basic/01.goframe介绍/image-20250703205213040.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/01.goframe介绍/image-20250703205213040.png -------------------------------------------------------------------------------- /doc_basic/01.goframe介绍/image-20250704154255333.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/01.goframe介绍/image-20250704154255333.png -------------------------------------------------------------------------------- /doc_basic/02.GoFrame环境搭建.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.GoFrame环境搭建.md -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20200308224453465.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20200308224453465.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250704163022453.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250704163022453.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250704193058129.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250704193058129.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250704193236103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250704193236103.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250704193334714.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250704193334714.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250704193723730.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250704193723730.png -------------------------------------------------------------------------------- /doc_basic/02.goframe环境搭建/image-20250706172642164.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/02.goframe环境搭建/image-20250706172642164.png -------------------------------------------------------------------------------- /doc_basic/03.GoFrame的Web服务介绍.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.GoFrame的Web服务介绍.md -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/image-20200316235850132-1941201.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/image-20200316235850132-1941201.png -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/image-20200316235911263-1941204-1941393.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/image-20200316235911263-1941204-1941393.png -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/image-20200316235911263-1941204.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/image-20200316235911263-1941204.png -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/image-20250707011517596.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/image-20250707011517596.png -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/image-20250707151318321.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/image-20250707151318321.png -------------------------------------------------------------------------------- /doc_basic/03.goframe的WEB服务介绍/浏览器访问后端流程.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/03.goframe的WEB服务介绍/浏览器访问后端流程.excalidraw -------------------------------------------------------------------------------- /doc_basic/04.GoFrame请求与响应.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/04.GoFrame请求与响应.md -------------------------------------------------------------------------------- /doc_basic/05.GoFrame路由注册.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/05.GoFrame路由注册.md -------------------------------------------------------------------------------- /doc_basic/06.GoFrame中间件.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/06.GoFrame中间件.md -------------------------------------------------------------------------------- /doc_basic/06.GoFrame中间件/06middleware.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/06.GoFrame中间件/06middleware.excalidraw -------------------------------------------------------------------------------- /doc_basic/06.GoFrame中间件/image-20250708100950640.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/06.GoFrame中间件/image-20250708100950640.png -------------------------------------------------------------------------------- /doc_basic/06.GoFrame中间件/image-20250708101437776.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/06.GoFrame中间件/image-20250708101437776.png -------------------------------------------------------------------------------- /doc_basic/06.GoFrame中间件/middleware.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/06.GoFrame中间件/middleware.png -------------------------------------------------------------------------------- /doc_basic/07.GoFrame的HTTP客户端.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/07.GoFrame的HTTP客户端.md -------------------------------------------------------------------------------- /doc_basic/08.GoFrame配置管理.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/08.GoFrame配置管理.md -------------------------------------------------------------------------------- /doc_basic/09.GoFrame日志管理.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/09.GoFrame日志管理.md -------------------------------------------------------------------------------- /doc_basic/10.GoFrame数据库.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/10.GoFrame数据库.md -------------------------------------------------------------------------------- /doc_basic/11.GoFrameRedis.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/11.GoFrameRedis.md -------------------------------------------------------------------------------- /doc_basic/12.GoFrame常用工具.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/12.GoFrame常用工具.md -------------------------------------------------------------------------------- /doc_basic/ReadMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/ReadMe.md -------------------------------------------------------------------------------- /doc_basic/docker/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/docker/.env -------------------------------------------------------------------------------- /doc_basic/docker/compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/docker/compose.yaml -------------------------------------------------------------------------------- /doc_basic/docker/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/doc_basic/docker/init.sql -------------------------------------------------------------------------------- /example_basic/02.hello/hello/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/02.hello/hello/go.mod -------------------------------------------------------------------------------- /example_basic/02.hello/hello/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/02.hello/hello/hello.go -------------------------------------------------------------------------------- /example_basic/02.hello/web/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/02.hello/web/go.mod -------------------------------------------------------------------------------- /example_basic/02.hello/web/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/02.hello/web/main.go -------------------------------------------------------------------------------- /example_basic/03.web/api.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/03.web/api.http -------------------------------------------------------------------------------- /example_basic/03.web/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/03.web/config/config.yaml -------------------------------------------------------------------------------- /example_basic/03.web/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/03.web/go.mod -------------------------------------------------------------------------------- /example_basic/03.web/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/03.web/main.go -------------------------------------------------------------------------------- /example_basic/03.web/public/hello.html: -------------------------------------------------------------------------------- 1 | welcome hello -------------------------------------------------------------------------------- /example_basic/03.web/public/index.html: -------------------------------------------------------------------------------- 1 | welcome static html -------------------------------------------------------------------------------- /example_basic/04.request/api.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/04.request/api.http -------------------------------------------------------------------------------- /example_basic/04.request/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/04.request/config/config.yaml -------------------------------------------------------------------------------- /example_basic/04.request/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/04.request/go.mod -------------------------------------------------------------------------------- /example_basic/04.request/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/04.request/main.go -------------------------------------------------------------------------------- /example_basic/04.request/public/hello.html: -------------------------------------------------------------------------------- 1 | welcome hello -------------------------------------------------------------------------------- /example_basic/04.request/public/index.html: -------------------------------------------------------------------------------- 1 | welcome static html -------------------------------------------------------------------------------- /example_basic/05.router/api.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/05.router/api.http -------------------------------------------------------------------------------- /example_basic/05.router/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/05.router/config.yaml -------------------------------------------------------------------------------- /example_basic/05.router/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/05.router/go.mod -------------------------------------------------------------------------------- /example_basic/05.router/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/05.router/main.go -------------------------------------------------------------------------------- /example_basic/06.middleware/api.http: -------------------------------------------------------------------------------- 1 | ### 中间件 2 | GET http://localhost:8199/sub/hello 3 | 4 | -------------------------------------------------------------------------------- /example_basic/06.middleware/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/06.middleware/config.yaml -------------------------------------------------------------------------------- /example_basic/06.middleware/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/06.middleware/go.mod -------------------------------------------------------------------------------- /example_basic/06.middleware/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/06.middleware/main.go -------------------------------------------------------------------------------- /example_basic/07.client/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/07.client/client_test.go -------------------------------------------------------------------------------- /example_basic/07.client/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/07.client/config.yaml -------------------------------------------------------------------------------- /example_basic/07.client/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/07.client/go.mod -------------------------------------------------------------------------------- /example_basic/07.client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/07.client/main.go -------------------------------------------------------------------------------- /example_basic/08.config/api.http: -------------------------------------------------------------------------------- 1 | ### 配置 2 | GET http://localhost:8199/ 3 | 4 | -------------------------------------------------------------------------------- /example_basic/08.config/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/08.config/config/config.yaml -------------------------------------------------------------------------------- /example_basic/08.config/configTest/config1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/08.config/configTest/config1.yaml -------------------------------------------------------------------------------- /example_basic/08.config/configTest/config2.yaml: -------------------------------------------------------------------------------- 1 | config2: "111" -------------------------------------------------------------------------------- /example_basic/08.config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/08.config/config_test.go -------------------------------------------------------------------------------- /example_basic/08.config/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/08.config/go.mod -------------------------------------------------------------------------------- /example_basic/08.config/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/08.config/main.go -------------------------------------------------------------------------------- /example_basic/09.glog/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/09.glog/config/config.yaml -------------------------------------------------------------------------------- /example_basic/09.glog/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/09.glog/go.mod -------------------------------------------------------------------------------- /example_basic/09.glog/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/09.glog/main.go -------------------------------------------------------------------------------- /example_basic/10.database/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/10.database/config/config.yaml -------------------------------------------------------------------------------- /example_basic/10.database/db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/10.database/db.sql -------------------------------------------------------------------------------- /example_basic/10.database/db_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/10.database/db_test.go -------------------------------------------------------------------------------- /example_basic/10.database/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/10.database/go.mod -------------------------------------------------------------------------------- /example_basic/11.redis/config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/11.redis/config/config.yaml -------------------------------------------------------------------------------- /example_basic/11.redis/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/11.redis/go.mod -------------------------------------------------------------------------------- /example_basic/11.redis/redis_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/11.redis/redis_test.go -------------------------------------------------------------------------------- /example_basic/12.tools/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/12.tools/go.mod -------------------------------------------------------------------------------- /example_basic/12.tools/tools_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/example_basic/12.tools/tools_test.go -------------------------------------------------------------------------------- /resources/img/opensource-pay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/resources/img/opensource-pay.jpg -------------------------------------------------------------------------------- /resources/img/qq.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/resources/img/qq.jpg -------------------------------------------------------------------------------- /resources/img/wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goflyfox/gfstudy/HEAD/resources/img/wechat.png --------------------------------------------------------------------------------