gobook-exercise

module
v0.0.0-...-b487365 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT

README

gobook-exercise

Directories

Path Synopsis
ch1
ex1.10_fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
ex1.12_server
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
ex1.1_echo
Echo prints its command-line arguments.
Echo prints its command-line arguments.
ex1.2_echo
Echo prints its command-line arguments.
Echo prints its command-line arguments.
ex1.4_dup
// Dup2 prints the count and text of lines that appear more than once // in the input.
// Dup2 prints the count and text of lines that appear more than once // in the input.
ex1.5_lissajous
// Lissajous generates GIF animations of random Lissajous figures.
// Lissajous generates GIF animations of random Lissajous figures.
ex1.6_lissajous
// Lissajous generates GIF animations of random Lissajous figures.
// Lissajous generates GIF animations of random Lissajous figures.
ex1.7_fetch
// Fetch prints the content found at a URL.
// Fetch prints the content found at a URL.
ex1.8_fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ex1.9_fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ch2
ex2.1_tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
ex2.2_unitconv
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no arguments, and converts each number into units like temperature in Celsius and Fahrenheit, length in feet and meters, weight in pounds and kilograms, and the like.
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no arguments, and converts each number into units like temperature in Celsius and Fahrenheit, length in feet and meters, weight in pounds and kilograms, and the like.
ex2.2_unitconv/unitconv
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no arguments, and converts each number into units like temperature in Celsius and Fahrenheit, length in feet and meters, weight in pounds and kilograms, and the like.
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no arguments, and converts each number into units like temperature in Celsius and Fahrenheit, length in feet and meters, weight in pounds and kilograms, and the like.
ch3
ex3.10_comma
Exercise 3.10: Write a non-recursive version of comma, using bytes.Buffer instead of string concatenation.
Exercise 3.10: Write a non-recursive version of comma, using bytes.Buffer instead of string concatenation.
ex3.11_comma
Exercise 3.11: Enhance comma so that it deals correctly with floating-point numbers and an optional sign.
Exercise 3.11: Enhance comma so that it deals correctly with floating-point numbers and an optional sign.
ex3.12_anagrams
Exercise 3.12: Write a function that reports whether two strings are anagrams of each other, that is, they contain the same letters in a different order.
Exercise 3.12: Write a function that reports whether two strings are anagrams of each other, that is, they contain the same letters in a different order.
ex3.1_surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ex3.5_mandelbrot
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ch4
ex4.1_sha256
Exercise 4.1: Write a function that counts the number of bits that are different in two SHA256 hashes.
Exercise 4.1: Write a function that counts the number of bits that are different in two SHA256 hashes.
ex4.2_sha256
Exercise 4.2: Write a program that prints the SHA256 hash of its standard input by default but supports a command-line flag to print the SHA384 or SHA512 hash instead.
Exercise 4.2: Write a program that prints the SHA256 hash of its standard input by default but supports a command-line flag to print the SHA384 or SHA512 hash instead.
ex4.3_reverse
Exercise 4.3: Rewrite reverse to use an array pointer instead of a slice.
Exercise 4.3: Rewrite reverse to use an array pointer instead of a slice.
ex4.4_rotate
Exercise 4.4: Write a version of rotate that operates in a single pass.
Exercise 4.4: Write a version of rotate that operates in a single pass.
ex4.5_delDup
Exercise 4.5: Write an in-place function to eliminate adjacent duplicates in a []string slice.
Exercise 4.5: Write an in-place function to eliminate adjacent duplicates in a []string slice.

Jump to

Keyboard shortcuts

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