官术网_书友最值得收藏!

Introduction

Go was created to solve the problems that came with the new architecture of multi-core processors, creating high-performance networks that serve millions of requests and compute-intensive jobs. The idea behind Go was to increase productivity by enabling rapid prototyping, decreasing compile and build time, and enabling better dependency management.

Unlike most other programming languages, Go provides the net/http package, which is sufficient when creating HTTP clients and servers. This chapter will cover the creation of HTTP and TCP servers in Go.

We will start with some simple recipes to create an HTTP and TCP server and will gradually move to recipes that are more complex, where we implement basic authentication, optimize server responses, define multiple routes, and log HTTP requests. We will also cover concepts and keywords such as Go Handlers, Goroutines, and Gorilla – a web toolkit for Go.

主站蜘蛛池模板: 林芝县| 湖口县| 宁城县| 宜宾市| 仙居县| 横峰县| 沅江市| 泗水县| 高青县| 兴义市| 沐川县| 新龙县| 耿马| 翁牛特旗| 肇庆市| 东乡族自治县| 扎赉特旗| 分宜县| 开平市| 淮北市| 金平| 和田县| 克山县| 运城市| 武宁县| 广灵县| 黄陵县| 九江市| 贵港市| 伊宁市| 潼南县| 于都县| 城口县| 望都县| 丰都县| 江山市| 紫云| 全椒县| 达孜县| 扶余县| 象州县|