gopl.io

module
v0.0.0-...-c00ecf5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT

README

gopl.io

Examples and exercises from the book The Go Programming Language.

Directories

Path Synopsis
ch01
dup1 command
Dup1 prints the text of each line that appears more than once in the standard output, preceded by its count.
Dup1 prints the text of each line that appears more than once in the standard output, preceded by its count.
dup2 command
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.
dup3 command
echo1 command
Echo1 prints its command-line arguments.
Echo1 prints its command-line arguments.
echo2 command
Echo2 prints its command-line arguments.
Echo2 prints its command-line arguments.
echo3 command
Echo3 prints its command-line arguments.
Echo3 prints its command-line arguments.
ex01 command
ex02 command
ex04 command
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.
ex05 command
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ex06 command
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ex07 command
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ex08 command
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ex09 command
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
ex10 command
Fetchall fetches the URLs in parallel and reports their times and sizes.
Fetchall fetches the URLs in parallel and reports their times and sizes.
ex12 command
fetch command
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
fetchall command
Fetchall fetches the URLs in parallel and reports their times and sizes.
Fetchall fetches the URLs in parallel and reports their times and sizes.
helloworld command
lissajous command
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
server1 command
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
server2 command
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
server3 command
ch02
boiling command
cf command
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
echo4 command
ex01 command
ex02 command
ftoc command
Ftoc prints two Fahrenheit-to-Celsius conversions.
Ftoc prints two Fahrenheit-to-Celsius conversions.
lenconv
Package lenconv performs Foot and Meter conversions.
Package lenconv performs Foot and Meter conversions.
tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
weightconv
Package weightconv performs Kilogram and Pound conversions.
Package weightconv performs Kilogram and Pound conversions.
ch03
basename1 command
basename2 command
comma command
ex01 command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ex02 command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ex03 command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ex04 command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ex05 command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ex06 command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ex07 command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ex08/cmd command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ex09 command
ex13 command
mandelbrot command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
netflags command
printints command
surface command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ch04
append command
autoescape command
charcount command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
dedup command
embed command
ex01/cmd command
ex02 command
ex08 command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
ex09/cmd command
ex10 command
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
ex11/cmd command
ex11/cmd/misc command
ex12/indexkcd command
ex12/xkcd command
ex13 command
ex14/cmd command
github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
issuehtml command
issuereport command
issues command
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
movie command
nonempty command
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
rev command
sha256 command
treesort command
ch05
defer1 command
defer2 command
ex01 command
Findlinks1 prints the links in an HTML document read from standard input.
Findlinks1 prints the links in an HTML document read from standard input.
ex02 command
Elementcount processes HTML input and counts the occuring elements by type.
Elementcount processes HTML input and counts the occuring elements by type.
ex03 command
Riptext reads HTML and outputs the content of all its text nodes.
Riptext reads HTML and outputs the content of all its text nodes.
ex04 command
ex05 command
ex06 command
ex07/cmd command
ex08 command
ex10 command
ex11/cmd command
ex12 command
ex13 command
ex14 command
ex17 command
ex18 command
ex19 command
fetch command
findlinks1 command
Findlinks1 prints the links in an HTML document read from standard input.
Findlinks1 prints the links in an HTML document read from standard input.
findlinks2 command
findlinks3 command
links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
links/cmd command
outline command
outline2 command
squares command
sum command
title1 command
title2 command
title3 command
toposort command
trace command
wait command
ch06
coloredpoint command
ex5
intset/cmd command
urlvalues command
ch07
bytecounter command
ex06/cmd command
ex08 command
ex09 command
ex11 command
ex12 command
ex15 command
ex16 command
ex17 command
Xmlselect prints the text of selected elements of an XML document.
Xmlselect prints the text of selected elements of an XML document.
ex18 command
http1 command
http2 command
http3 command
http4 command
sleep command
sorting command
surface command
tempconv/cmd command
xmlselect command
Xmlselect prints the text of selected elements of an XML document.
Xmlselect prints the text of selected elements of an XML document.
ch08
chat command
clock1 command
Clock1 is a TCP server that preiodically writes the time.
Clock1 is a TCP server that preiodically writes the time.
clock2 command
Clock2 is a TCP server that preiodically writes the time, handling multiple clients concurrently.
Clock2 is a TCP server that preiodically writes the time, handling multiple clients concurrently.
countdown1 command
countdown2 command
countdown3 command
crawl1 command
crawl2 command
crawl3 command
du1 command
du2 command
du3 command
du4 command
ex01/clocksrv command
Clock2 is a TCP server that preiodically writes the time, handling multiple clients concurrently.
Clock2 is a TCP server that preiodically writes the time, handling multiple clients concurrently.
ex03 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
ex04 command
ex06 command
ex08 command
ex09 command
ex10 command
ex10/links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
ex11 command
ex12 command
ex13 command
ex14 command
netcat1 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
netcat2 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
netcat3 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
pipeline1 command
pipeline2 command
pipeline3 command
reverb1 command
reverb2 command
spinner command
thumbnail/cmd command
ch09
bank
Package bank implements a bank with only one account.
Package bank implements a bank with only one account.
bank/cmd command
bank1
Package bank implements a concurrency-safe bank with only one account.
Package bank implements a concurrency-safe bank with only one account.
bank1/cmd command
bank2
Package bank implements a concurrency-safe bank with only one account.
Package bank implements a concurrency-safe bank with only one account.
bank2/cmd command
bank3
Package bank implements a concurrency-safe bank with only one account.
Package bank implements a concurrency-safe bank with only one account.
bank3/cmd command
ex01
Package bank implements a concurrency-safe bank with only one account.
Package bank implements a concurrency-safe bank with only one account.
ex01/cmd command
ex03
Package memo provides a concurrency-safe memoization of a function of type Func.
Package memo provides a concurrency-safe memoization of a function of type Func.
memo1
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memo2
Package memo provides a concurrency-safe memoization of a function of type Func.
Package memo provides a concurrency-safe memoization of a function of type Func.
memo3
Package memo provides a concurrency-safe memoization of a function of type Func.
Package memo provides a concurrency-safe memoization of a function of type Func.
memo4
Package memo provides a concurrency-safe memoization of a function of type Func.
Package memo provides a concurrency-safe memoization of a function of type Func.
memo5
Package memo provides a concurrency-safe memoization of a function of type Func.
Package memo provides a concurrency-safe memoization of a function of type Func.

Jump to

Keyboard shortcuts

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