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

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.

主站蜘蛛池模板: 高密市| 荆门市| 蒙山县| 镇康县| 濮阳市| 西宁市| 卓资县| 高州市| 齐齐哈尔市| 陇川县| 东至县| 宜川县| 安西县| 东台市| 宝丰县| 当雄县| 宣武区| 电白县| 广东省| 大埔县| 元谋县| 佛教| 海城市| 沂水县| 景德镇市| 黄石市| 汉寿县| 丰宁| 沧源| 庆城县| 和田县| 察哈| 惠水县| 扎囊县| 桐梓县| 南充市| 天峨县| 莆田市| 石景山区| 柏乡县| 喜德县|