Wrapping Up

Powerful Command-Line Applications in Go — by Ricardo Gerardi (38 / 127)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Exercises | TOC | Chapter 4 Navigating the File System 👉

In this chapter, you used several packages and functions to work with files. You opened files for reading and writing, used temporary files, worked with templates, and used the defer statement to ensure resources are cleaned up. These skills allow you to create powerful CLIs tools.

To complement these concepts, in the next chapter, you’ll work with directories and file system objects.

Footnotes

[20] https://github.com/russross/blackfriday

[21] https://github.com/microcosm-cc/bluemonday

[22] https://github.com/golang/go/wiki/Modules#version-selection

[23] https://godoc.org/gopkg.in/russross/blackfriday.v2#pkg-constants

Copyright © 2021, The Pragmatic Bookshelf.

👈 Exercises | TOC | Chapter 4 Navigating the File System 👉

Powerful Command-Line Applications in Go by Ricardo Gerardi can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.