Go Cookbook
上QQ阅读APP看书,第一时间看更新

Command-Line Tools

In this chapter, the following recipes will be covered:

  • Using command-line flags
  • Using command-line arguments
  • Reading and setting environment variables
  • Configuration using TOML, YAML, and JSON
  • Working with Unix pipes
  • Catching and handling signals
  • An ANSI coloring application