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

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.

主站蜘蛛池模板: 哈巴河县| 甘孜| 东安县| 通榆县| 道真| 桐柏县| 千阳县| 鄂托克前旗| 沙洋县| 浪卡子县| 东台市| 夏津县| 内乡县| 台山市| 格尔木市| 调兵山市| 宜丰县| 汶川县| 萝北县| 五常市| 延庆县| 尼勒克县| 日土县| 汨罗市| 嫩江县| 灵台县| 建始县| 鄂伦春自治旗| 社旗县| 遵化市| 东乡族自治县| 辛集市| 安新县| 清苑县| 冕宁县| 丰县| 图木舒克市| 平远县| 明星| 莱阳市| 朝阳区|