gopl

module
v0.0.0-...-8705ed6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Unlicense

README

The Go Programming Language

A collection of my solutions to the exercises from "The Go Programming Language".

Exercises

Directories

Path Synopsis
ch1
dup
Dup prints the count and text of lines that appear more than once in the input files, followed by their filenames.
Dup prints the count and text of lines that appear more than once in the input files, followed by their filenames.
echo1
Echo1 prints the name of the command that invoked it along with its command-line arguments.
Echo1 prints the name of the command that invoked it along with its command-line arguments.
echo2
Echo2 prints the index and value of each of its command-line arguments, one per line.
Echo2 prints the index and value of each of its command-line arguments, one per line.
echo3
Echo3 measures the difference in running time between using string concatination and strings.Join for our echo program.
Echo3 measures the difference in running time between using string concatination and strings.Join for our echo program.
fetch1
Fetch1 prints the content found at each specified URL.
Fetch1 prints the content found at each specified URL.
fetch2
Fetch2 prints the content found at each specified URL.
Fetch2 prints the content found at each specified URL.
fetch3
Fetch3 prints the content found at each specified URL.
Fetch3 prints the content found at each specified URL.
fetchall1
Fetchall1 fetches URLs in parallel and reports their times and sizes.
Fetchall1 fetches URLs in parallel and reports their times and sizes.
fetchall2
Fetchall2 fetches URLs in parallel and reports their times and sizes.
Fetchall2 fetches URLs in parallel and reports their times and sizes.
lissajous1
Lissajous1 generates GIF animations of random lissajous figures.
Lissajous1 generates GIF animations of random lissajous figures.
lissajous2
Lissajous2 generates GIF animations of random lissajous figures.
Lissajous2 generates GIF animations of random lissajous figures.
lissajous3
Lissajous3 generates GIF animations of random lissajous figures and serves them through HTTP.
Lissajous3 generates GIF animations of random lissajous figures and serves them through HTTP.
ch2
popcount1
Package popcount computes the number of set bits.
Package popcount computes the number of set bits.
popcount2
Package popcount computes the number of set bits.
Package popcount computes the number of set bits.
popcount3
Package popcount computes the number of set bits.
Package popcount computes the number of set bits.
tempconv/tempconv
Package tempconv performs Celsius, Fahrenheit, and Kelvin temperature computations.
Package tempconv performs Celsius, Fahrenheit, and Kelvin temperature computations.
unitconv
Unitconv converts its numeric arguments to various temperatures, lengths, and weights.
Unitconv converts its numeric arguments to various temperatures, lengths, and weights.
unitconv/lenconv
Package lenconv performs Feet and Meter length computations.
Package lenconv performs Feet and Meter length computations.
unitconv/weightconv
Package weightconv performs Pound and Kilogram weight computations.
Package weightconv performs Pound and Kilogram weight computations.
ch3
anagram
Anagram reports whether two strings contain the same letters in a different order.
Anagram reports whether two strings contain the same letters in a different order.
mandelbrot1
Mandelbrot1 emits a PNG image of the Mandelbrot fractal.
Mandelbrot1 emits a PNG image of the Mandelbrot fractal.
mandelbrot2
Mandelbrot2 emits a PNG image of the Mandelbrot fractal with grid based supersampling.
Mandelbrot2 emits a PNG image of the Mandelbrot fractal with grid based supersampling.
mandelbrot3
Mandelbrot3 measures the difference in performance and accuracy of rendering the mandelbrot set using various representations of numbers.
Mandelbrot3 measures the difference in performance and accuracy of rendering the mandelbrot set using various representations of numbers.
mandelbrot3/mandelbrot
Package mandelbrot provides implementations for rendering the mandelbrot set using following number representations: complex64, complex128, big.Float, or big.Rat.
Package mandelbrot provides implementations for rendering the mandelbrot set using following number representations: complex64, complex128, big.Float, or big.Rat.
mandelbrot4
Mandelbrot4 renders fractals over HTTP.
Mandelbrot4 renders fractals over HTTP.
newton
Newton emits a PNG of a simple fractal.
Newton emits a PNG of a simple fractal.
surface1
Surface1 computes an SVG rendering of a 3-D surface function.
Surface1 computes an SVG rendering of a 3-D surface function.
surface2
Surface2 computes an SVG rendering of a 3-D surface function.
Surface2 computes an SVG rendering of a 3-D surface function.
surface3
Surface3 computes an SVG rendering of a 3-D surface function.
Surface3 computes an SVG rendering of a 3-D surface function.
surface4
Surface4 renders a 3-D surface using SVG over HTTP.
Surface4 renders a 3-D surface using SVG over HTTP.
surface4/surface
Package surface computes an SVG rendering of a 3-D surface function.
Package surface computes an SVG rendering of a 3-D surface function.
ch4
charcount
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
hash
Hash prints the SHA256, SHA385, or SHA512 hash of its input.
Hash prints the SHA256, SHA385, or SHA512 hash of its input.
hashdiff
Hashdiff counts the number of bits that are different in two SHA256 hashes.
Hashdiff counts the number of bits that are different in two SHA256 hashes.
issues1
Issues1 prints a table of GitHub issues matching the search terms.
Issues1 prints a table of GitHub issues matching the search terms.
issues1/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
reverse1
Reverse1 reverses an array of ints.
Reverse1 reverses an array of ints.
wordfreq
Wordfreq reports the frequency of each word in an input text file.
Wordfreq reports the frequency of each word in an input text file.

Jump to

Keyboard shortcuts

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