Gin Framework and the practice of Web development with Go (i)

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.