> For the complete documentation index, see [llms.txt](https://go-mega.bonfy.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://go-mega.bonfy.im/master.md).

# Go-Mega

![cover](/files/-LNPxd54XaFf4rvKnUtq)

## Go-Mega

[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-brightgreen.svg)](https://raw.githubusercontent.com/bonfy/go-mega/master/LICENSE)

大家好，我是 [BONFY](https://github.com/bonfy) ，拥有多年开发Web的经验，不过想起我当时入门 Python Web 的时候也是看了当时 [Miguel Grinberg](https://blog.miguelgrinberg.com/) 的博客，按照他的教程一步一步搭建最简单的博客，再到自己去研究 **Flask** 源码以及其他的 Web 框架。

目前由于工作需要，我经常要用 **Go** 开发Web应用，也积攒了一些经验和方法，所以就想模仿 [The Flask Mega-Tutorial教程](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world) 来编写一套 **Go** 的 Web 教程。

本书的目录我尽量和 The Flask Mega 保持一致，不过对于有些章节也会酌情删减。

### 章节总览

| Title                                                        | Source Code                                                                | Zip                                                                |
| ------------------------------------------------------------ | -------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [00-Prepare](/00-prepare.md)                                 |                                                                            |                                                                    |
| [01-Hello-World](/01-hello-world.md)                         | [View](https://github.com/bonfy/go-mega-code/tree/01-Hello-World)          | [Download](https://github.com/bonfy/go-mega-code/archive/v0.1.zip) |
| [02-Template-Basic](/02-template-basic.md)                   | [View](https://github.com/bonfy/go-mega-code/tree/02-Template)             | [Download](https://github.com/bonfy/go-mega-code/archive/v0.2.zip) |
| [03-Template-Advance](/03-template-advance.md)               | [View](https://github.com/bonfy/go-mega-code/tree/03-Template-Advance)     | [Download](https://github.com/bonfy/go-mega-code/archive/v0.3.zip) |
| [04-Web-Form](/04-web-form.md)                               | [View](https://github.com/bonfy/go-mega-code/tree/04-Web-Form)             | [Download](https://github.com/bonfy/go-mega-code/archive/v0.4.zip) |
| [05-Database](/05-database.md)                               | [View](https://github.com/bonfy/go-mega-code/tree/05-Database)             | [Download](https://github.com/bonfy/go-mega-code/archive/v0.5.zip) |
| [06-User-Login](/06-user-login.md)                           | [View](https://github.com/bonfy/go-mega-code/tree/06-User-Login)           | [Download](https://github.com/bonfy/go-mega-code/archive/v0.6.zip) |
| [07-Profile-Page-And-Avatar](/07-profile-page-and-avatar.md) | [View](https://github.com/bonfy/go-mega-code/tree/07-Profile-Page)         | [Download](https://github.com/bonfy/go-mega-code/archive/v0.7.zip) |
| [08-Follower](/08-follower.md)                               | [View](https://github.com/bonfy/go-mega-code/tree/08-Follower)             | [Download](https://github.com/bonfy/go-mega-code/archive/v0.8.zip) |
| [09-Pagination](/09-pagination.md)                           | [View](https://github.com/bonfy/go-mega-code/tree/09-Pagination)           | [Download](https://github.com/bonfy/go-mega-code/archive/v0.9.zip) |
| [10-Email-Support](/10-email-support.md)                     | [View](https://github.com/bonfy/go-mega-code/tree/10-Email-Support)        | [Download](https://github.com/bonfy/go-mega-code/archive/v1.0.zip) |
| [11-Facelift](/11-facelift.md)                               | [View](https://github.com/bonfy/go-mega-code/tree/11-Facelift)             | [Download](https://github.com/bonfy/go-mega-code/archive/v1.1.zip) |
| [12-Dates-And-Times](/12-dates-and-times.md)                 | [View](https://github.com/bonfy/go-mega-code/tree/12-Dates-And-Times)      | [Download](https://github.com/bonfy/go-mega-code/archive/v1.2.zip) |
| [13-Javascript-Magic](/13-javascript-magic.md)               | [View](https://github.com/bonfy/go-mega-code/tree/13-Javascript-Magic)     | [Download](https://github.com/bonfy/go-mega-code/archive/v1.3.zip) |
| [14-Deployment-On-Heroku](/14-deployment-on-heroku.md)       | [View](https://github.com/bonfy/go-mega-code/tree/14-Deployment-On-Heroku) | [Download](https://github.com/bonfy/go-mega-code/archive/v1.4.zip) |
| [15-Deployment-On-Linux](/15-deployment-on-linux.md)         | [View](https://github.com/bonfy/go-mega-code/tree/15-Deployment-On-Linux)  | [Download](https://github.com/bonfy/go-mega-code/archive/v1.5.zip) |
| [16-Summary](/16-summary.md)                                 |                                                                            |                                                                    |

### 声明

本书由 [BONFY](https://github.com/bonfy) 编写，采用 [CC BY-NC-ND 4.0](http://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh) 协议发布。

这意味着你可以在非商业性使用的前提下自由转载，但必须：

1. 保持署名
2. 不对本书进行修改

### 联系我

如果你对于本书有什么建议或意见，欢迎批评指正，并联系我。

* [个人主页](https://bonfy.im)
* [个人博客](https://blog.bonfy.im)
* [知乎](https://zhuanlan.zhihu.com/bonfy)
* [GitHub](https://github.com/bonfy)
* [Twitter](https://twitter.com/foreverbonfy)
* [Email](mailto:bonfygithub@163.com)

### 相关资源

* [书籍 Github源地址](https://github.com/bonfy/go-mega)
* [源码 Github源地址](https://github.com/bonfy/go-mega-code)
* [Demo 地址](https://go-mega.herokuapp.com)

### 电子书

* [epub 下载链接](https://raw.githubusercontent.com/bonfy/image/master/ebook/Go-Mega%20Tutorial.epub)
* [mobi 下载链接](https://raw.githubusercontent.com/bonfy/image/master/ebook/Go-Mega%20Tutorial.mobi)

### 支持我

如果您感觉有收获，欢迎给我打赏，以激励我输出更多优质内容，感谢支持！

![感谢支持](/files/-LNIhG0Z3FreAiCXBFsn)
