Book Image

Go Systems Programming

Book Image

Go Systems Programming

Overview of this book

Go is the new systems programming language for Linux and Unix systems. It is also the language in which some of the most prominent cloud-level systems have been written, such as Docker. Where C programmers used to rule, Go programmers are in demand to write highly optimized systems programming code. Created by some of the original designers of C and Unix, Go expands the systems programmers toolkit and adds a mature, clear programming language. Traditional system applications become easier to write since pointers are not relevant and garbage collection has taken away the most problematic area for low-level systems code: memory management. This book opens up the world of high-performance Unix system applications to the beginning Go programmer. It does not get stuck on single systems or even system types, but tries to expand the original teachings from Unix system level programming to all types of servers, the cloud, and the web.
Table of Contents (13 chapters)

Writing Web Applications in Go

In the previous chapter, we discussed many advanced topics related to goroutines and channels as well as shared memory and mutexes.

The main subject of this chapter is the development of web applications in Go. However, this chapter will also talk about how to interact with two popular databases in your Go programs. The Go standard library provides packages that can help you develop web applications using higher level functions, which means that you can do complex things such as reading web pages by just calling a couple of Go functions with the right arguments. Although this kind of programming hides the complexity behind a request and offers less control over the details, it allows you to develop difficult applications using fewer lines of code, which also results in having fewer bugs in your programs.

However, as this book is about systems programming...