Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical Systems Programming in Go
  • Table Of Contents Toc
Practical Systems Programming in Go

Practical Systems Programming in Go

By : Mihalis Tsoukalos
close
close
Practical Systems Programming in Go

Practical Systems Programming in Go

By: Mihalis Tsoukalos

Overview of this book

Go has become a leading language for Systems Programming thanks to its simplicity, strong concurrency model, and excellent performance. Practical Systems Programming in Go shows how to use Go beyond application development by building software that interacts with the operating system, networks, and data at scale. The book starts with a focused introduction to Go, covering the language features and standard packages most relevant to systems programming, including those handling concurrency, interfaces, testing, and runtime internals. It then moves into essential system-level topics such as file handling and I/O, UNIX signals, file systems, structured data formats, databases, and TCP/IP networking. Readers build practical command-line tools, web services, and network clients and servers along the way. In the final section, the book explores advanced applications, including writing an interpreter for a small programming language, processing time series data, building data-mining tools, and creating efficient indexes for UNIX file systems. By the end, readers will be able to design and implement robust systems software in Go for real-world environments.
Table of Contents (21 chapters)
close
close
Lock Free Chapter
1
Part 1: A quick introduction to Go
6
Part 2: Systems Programming Essentials
12
Part 3: Applications
20
Index

Summary

We began this chapter by showing how to handle UNIX signals in Go. Then, we explored Go's capabilities for working with the filesystem in depth. We started with the basics of retrieving file information before moving on to traversing directory trees and gathering useful statistics about files and directories. We learned how to differentiate between file types, locate empty directories, and even embed static assets directly into Go binaries using the embed package. Along the way, we saw how the io/fs package provides a consistent abstraction for handling file and directory data, with tools such as fs.WalkDir() simplifying traversal. We also built practical utilities such as file statistics collectors, empty directory finders, a utility that copies a single file into multiple directories, and simplified tree(1) and dd(1) clones, demonstrating how Go code can replicate UNIX commands.

In the next chapter, we will move from unstructured bytes and directory hierarchies to the world...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical Systems Programming in Go
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon