Go Web Programming


Web programming based on Golang includes Web server, routing, request, response, view, database interaction, Web service, testing, deployment and other modules.

quick get start

Routing Distribution

Request processing

View Template

Tips: At present, the mainstream of Web development is to separate the front end from the back end. The front end is written through the JavaScript framework, and the back end provides data services through the API interface. So you can understand the view template and focus on the API interface development.

Note: Some code examples of view template are quoted from 《Go Web Programming》 This book.

error handling

data storage

Database operation

Concurrent programming

Security technology

  • XSS
  • CSRF protection
  • Encryption/decryption
  • Password storage (hash)
  • Implementation of user authentication function
  • HTTPS

Web Services

  • SOAP+XML
  • REST+JSON
  • RPC

Test series

  • unit testing
  • HTTP test
  • Benchmarking
  • Dependency Injection and Simulation
  • Third party test package

Entry project: online forum

Statement: This project is based on Go Web Programming In a book chitchat For the secondary development, the database is adjusted to MySQL, the router is adjusted to gorilla/linux, the overall directory structure is adjusted, and the configuration file singleton mode acquisition, localized programming and application deployment process are added based on the original project. The complete project code has been submitted to Github warehouse: https://github.com/nonfu/chitchat

Application deployment

  • Deploy to server
  • cloud computing
  • Deploy to Docker

Development framework

Gin

Beego

Practical project

Public account&community

This series of articles will be synchronized to the following WeChat official accounts:

 Xuexuejun official account

Subscription Service

If you think this series of tutorials is helpful for your study, you can choose to upgrade to Xueyuan subscriber to support Xueyuan:

Upgrade to Xuejun subscriber now


give the thumbs-up Cancel Like Collection Cancel Collection

<<Previous: There is no previous article

>>Next: Quick Start: Creating the First Go Web Application