# Go-Mega

![cover](https://3602083476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LL8KjUVhGbbzzmqhH-q%2F-LNPzDafdTpHncBe_prN%2F-LNPxd54XaFf4rvKnUtq%2Fcover.png?generation=1538051077035193\&alt=media)

## 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](https://go-mega.bonfy.im/00-prepare)                                 |                                                                            |                                                                    |
| [01-Hello-World](https://go-mega.bonfy.im/01-hello-world)                         | [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](https://go-mega.bonfy.im/02-template-basic)                   | [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](https://go-mega.bonfy.im/03-template-advance)               | [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](https://go-mega.bonfy.im/04-web-form)                               | [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](https://go-mega.bonfy.im/05-database)                               | [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](https://go-mega.bonfy.im/06-user-login)                           | [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](https://go-mega.bonfy.im/07-profile-page-and-avatar) | [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](https://go-mega.bonfy.im/08-follower)                               | [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](https://go-mega.bonfy.im/09-pagination)                           | [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](https://go-mega.bonfy.im/10-email-support)                     | [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](https://go-mega.bonfy.im/11-facelift)                               | [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](https://go-mega.bonfy.im/12-dates-and-times)                 | [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](https://go-mega.bonfy.im/13-javascript-magic)               | [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](https://go-mega.bonfy.im/14-deployment-on-heroku)       | [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](https://go-mega.bonfy.im/15-deployment-on-linux)         | [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](https://go-mega.bonfy.im/16-summary)                                 |                                                                            |                                                                    |

### 声明

本书由 [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)

### 支持我

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

![感谢支持](https://3602083476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LL8KjUVhGbbzzmqhH-q%2F-LNIhFcWG-lUdZzZx_ti%2F-LNIhG0Z3FreAiCXBFsn%2Fsponsor.jpg?generation=1537928927432105\&alt=media)
