Exercises

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

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Distributing Your Application as Sou rce Code | TOC | Wrapping Up 👉

Apply the skills you developed in this chapter by working on these exercises:

  • Display an error to the user if they’re trying to run the application on an operating system that’s not in your list of supported platforms.
  • Use the cross-compilation techniques to cross-build other applications you developed throughout the book. Some applications may require tuning or OS-specific data or files to work properly on multiple platforms.
  • Use the Dockerfile examples provided in this chapter to build container images for other applications you developed in this book. For example, the REST API server you developed in Developing a REST API Server, is a good candidate to run as a Linux container.

👈 Distributing Your Application as Sou rce Code | TOC | Wrapping Up 👉

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.