{{ variable.name }}
Introduction: From the recruitment requirements of various enterprises, it can be found that GO language is a significant plus point. Moreover, with the popularity of microservices, GO is becoming increasingly popular and gradually becoming mainstream. The course will use the popular Gin framework of GO to build a rapid development framework and develop the popular point-sponsored power function in wechat Moments, leading everyone into the world of GO.
Chapter 1 Course Introduction
This chapter provides an overall introduction to the course objectives and content arrangement, conducts project presentations, and enables students to have a comprehensive understanding of what the course aims to do.
1-1 guided learning
Chapter 2: Building the Gin Framework Environment
Introduce the Go language and the Gin framework as well as how to install them, and implement the first small case of hello world according to the learning management.
2-1 How to set up a Go environment and complete "HelloWorld"
2-2 Realize your own Gin Mini Case
Chapter 3: Building an Entry-level Project Based on the Gin Framework
This chapter will guide you step by step to implement the essential functions of a rapid development framework and ultimately complete a rapid development framework that can be directly used in enterprises
3-1 Routing router and routing file encapsulation
3-2 Implement Json return and unify the response format
3-3 How to Implement a controller
3-4 Obtain the request parameters and bind them to the struct structure
Exception catching is achieved through defer and recover in 3-5 cases
3-6 How to Customize logger Middleware and Implement Log Collection
3-7 Introduce the ORM framework Gorm and implement database operations
3-8 Implementation and Encapsulation of crud in Databases
Chapter 4: Rapid Development of Moments Support Projects
Use the rapid development framework from the previous chapter to develop practical projects. Write the code by hand to help everyone realize the wechat Moments project
4-1 Complete the design and writing of different functional data tables based on business requirements
4-2 Implement user login and registration functions as well as the use of sessions
4-3 Implement the voting function based on Mysql
4-4 Implement the ranking display function based on the orderby sorting of the Mysql database
Chapter 5: Optimizing the Ranking Function Based on Redis Cache
Adopt the ranking list solution used in enterprises and utilize redis to optimize the ranking list function
5-1 Optimize the ranking list function based on Redis' Sorted Sets
Chapter 6: Course Summary and Outlook
Summarize and sort out the course, and give some learning suggestions
6-1 Deploy the project and go live under Linux
6-2 Overall project demonstration and summary