ch01-tutorial/

directory
v0.0.0-...-82d20f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2020 License: MIT

README

The Blue Book - Chapter 01 - Tutorial and introduction

  • 1.2 command line arguments - Simple program that repeats the Args that are passed to the program using the os.Args capabilities.
    • exercise 1.1 - Modifies the program to take account of os.Args indexes
    • exercise 1.2 - Modifies the program to experiment with output and uses the formatted printing options to show the index and the argument value for each arg provided.
  • 1.3 finding duplicate lines - Take input from the Stdin and add to map the value and occurence count. Filter only on samples that are duplicates.
  • 1.3 finding duplicate files - pass in zero files and we'll use the Stdin to find duplicate values. When files are passed in it will check all the files and return a list of values which made multiple appearances in one or many files.
    • exercise 1.4 - adjusted the above to list the files that a duplicate was found in.
  • 1.4 Animated gifs - example of creating an animated gif.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL