This is a creation in Article, where the information may have evolved or changed.
Standard Web development for Golang
Developing a Web application using the Golang standard library Net/http package is very simple. For this part of the content, in other books or online materials have been detailed, not to repeat.
Introduction to the GIN framework
Through access to data and online discussions, some of the web frameworks that are still popular today are found. They are:
Beego, Iris, gin, echo ...
Gin is what this series of articles will be used for. For basic use of gin, please refer to:
Gin's GitHub address
Go Language web Framework
A good Book of quality
No way, this is a foreign book, a can be easy to read, the quality of the foreign book; I also collected a lot of books about Golang, after browsing the contrast, found that only this book has a relatively complete demo, at the same time clearly show the demo development process.
The cover of the book and the demo code in the book:
Web Development with Go
Study hard
Carefully read the contents of the book, the "Chapter 9 Building RESTful Services," the demo tune.
My own machine environment is:
Operating system: UBUNTU-16.04-GNOME-AMD64
Programming Language: Golang 1.7
Development Ide:gogland
For the difference, you can change the project name to Taskmanager2. Project code in Gogland (Godeps package is temporarily ignored):
Directory structure of the TASKMANAGER2 project
Expanded after:
Expansion of the project 1
Expansion of the Project 2
Indeed, it will take some time to get the demo in the book to be tuned, which is also difficult for beginners. However, it is worthwhile to do so, and to change the demo, it is important to understand its basic operating conditions first.
In this series of practical articles, the original demo in the book will not be too much to explain, but focus on the practice of gin framework of the original demo of the transformation.