Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
tgpl
|
|
|
ch1/Ex1.1
command
Prints command-line arguments
|
Prints command-line arguments |
|
ch1/Ex1.10
command
Fetches URLs in parallel and reports elapsed time and size; investgates caching
|
Fetches URLs in parallel and reports elapsed time and size; investgates caching |
|
ch1/Ex1.10.0
command
Fetches URLs in parallel and reports elapsed time and size
|
Fetches URLs in parallel and reports elapsed time and size |
|
ch1/Ex1.11
command
Fetches URLs in parallel and reports elapsed time and size; investgates caching; panic when fetch timeout
|
Fetches URLs in parallel and reports elapsed time and size; investgates caching; panic when fetch timeout |
|
ch1/Ex1.12
command
|
|
|
ch1/Ex1.12.0
command
A minimal "echo" server; prints incoming url path
|
A minimal "echo" server; prints incoming url path |
|
ch1/Ex1.12.1
command
A minimal "echo" server; prints incoming url path; count request counts
|
A minimal "echo" server; prints incoming url path; count request counts |
|
ch1/Ex1.12.2
command
A minimal "echo" server; prints headers, form data
|
A minimal "echo" server; prints headers, form data |
|
ch1/Ex1.2
command
Prints the index and value of each of its arguments, one per line
|
Prints the index and value of each of its arguments, one per line |
|
ch1/Ex1.3
Package clargs measures the different in running time between the inefficient version and the one uses `strings.Join`
|
Package clargs measures the different in running time between the inefficient version and the one uses `strings.Join` |
|
ch1/Ex1.4
command
Prints the names of all files in which each duplicated line occurs
|
Prints the names of all files in which each duplicated line occurs |
|
ch1/Ex1.4.0
command
Prints the names of all files in which each duplicated line occurs
|
Prints the names of all files in which each duplicated line occurs |
|
ch1/Ex1.5
command
Generates random animations of random Lissajous figures
|
Generates random animations of random Lissajous figures |
|
ch1/Ex1.6
command
Generates random animations of random Lissajous figures
|
Generates random animations of random Lissajous figures |
|
ch1/Ex1.7
command
Prints the content found at a URL
|
Prints the content found at a URL |
|
ch1/Ex1.7.0
command
Prints the content found at a URL
|
Prints the content found at a URL |
|
ch1/Ex1.8
command
Prints the content found at a URL; prefix http:// if it's missing in url
|
Prints the content found at a URL; prefix http:// if it's missing in url |
|
ch1/Ex1.9
command
Prints the content found at a URL; prefix http:// if it's missing in url
|
Prints the content found at a URL; prefix http:// if it's missing in url |
|
ch10/cross
command
|
|
|
ch10/jpeg
command
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output
|
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output |
|
ch10/mandelbrot
command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
|
Mandelbrot emits a PNG image of the Mandelbrot fractal. |
|
ch11/echo
command
Echo prints its command-line arguments.
|
Echo prints its command-line arguments. |
|
ch11/rand_test
Package word provides utilities for word games
|
Package word provides utilities for word games |
|
ch11/word1
Package word provides utilities for word games
|
Package word provides utilities for word games |
|
ch11/word2
Package word provides utilities for word games
|
Package word provides utilities for word games |
|
ch12/display
command
|
|
|
ch2/Ex2.0
command
Prints comamnd-line arguments
|
Prints comamnd-line arguments |
|
ch2/Ex2.1
command
|
|
|
ch2/Ex2.2
command
|
|
|
ch2/Ex2.3
command
|
|
|
ch2/Ex2.3.0
command
|
|
|
ch2/Ex2.4
command
|
|
|
ch2/Ex2.5
command
|
|
|
ch2/tempconv
Package tempconv performs Celsius and Fahrenheit conversions
|
Package tempconv performs Celsius and Fahrenheit conversions |
|
ch3/Ex3.1
command
Computes an SVG rendering of a 3-D surface function
|
Computes an SVG rendering of a 3-D surface function |
|
ch3/Ex3.1.0
command
Computes an SVG rendering of a 3-D surface function
|
Computes an SVG rendering of a 3-D surface function |
|
ch3/Ex3.10
command
|
|
|
ch3/Ex3.11
command
|
|
|
ch3/Ex3.12
command
|
|
|
ch3/Ex3.13
command
|
|
|
ch3/Ex3.3
command
Computes an SVG rendering of a 3-D surface function
|
Computes an SVG rendering of a 3-D surface function |
|
ch3/Ex3.4
command
Computes an SVG rendering of a 3-D surface function
|
Computes an SVG rendering of a 3-D surface function |
|
ch3/Ex3.5
command
emits a PNG image of the Mandelbrot fractal
|
emits a PNG image of the Mandelbrot fractal |
|
ch3/Ex3.5.0
command
emits a PNG image of the Mandelbrot fractal
|
emits a PNG image of the Mandelbrot fractal |
|
ch3/bitwise
command
|
|
|
ch3/netflag
command
|
|
|
ch3/string
some string utilities; check standard library for existence before using these implementations
|
some string utilities; check standard library for existence before using these implementations |
|
ch4/Ex4.1
command
counts the number of bits that are different in 2 SHA256 hases
|
counts the number of bits that are different in 2 SHA256 hases |
|
ch4/Ex4.10
command
Issues prints a table of Github issues matching the search terms
|
Issues prints a table of Github issues matching the search terms |
|
ch4/Ex4.2
command
prints the SHA256 hash of its standard input by default supports a command-line flag to print the SHA384 or SHA512 hash instead
|
prints the SHA256 hash of its standard input by default supports a command-line flag to print the SHA384 or SHA512 hash instead |
|
ch4/Ex4.3
command
|
|
|
ch4/Ex4.4
command
|
|
|
ch4/Ex4.5
command
|
|
|
ch4/Ex4.6
command
|
|
|
ch4/Ex4.7
command
|
|
|
ch4/Ex4.8
command
computes counts of Unicode characters
|
computes counts of Unicode characters |
|
ch4/Ex4.9
command
reports the frequency of each word in an input text file
|
reports the frequency of each word in an input text file |
|
ch4/append
command
|
|
|
ch4/autoescape
command
|
|
|
ch4/charcount
command
computes counts of Unicode characters
|
computes counts of Unicode characters |
|
ch4/dedup
command
uses a map whose keys represent the set of lines that have already appeared to ensure that subsequent occurrences not printed
|
uses a map whose keys represent the set of lines that have already appeared to ensure that subsequent occurrences not printed |
|
ch4/github
Package github provides a Go API for the Github issue tracker https://developer.github.com/v3/search/#search-issues
|
Package github provides a Go API for the Github issue tracker https://developer.github.com/v3/search/#search-issues |
|
ch4/graph
command
graph maps a string to a set of related strings, its successors in a directed graph
|
graph maps a string to a set of related strings, its successors in a directed graph |
|
ch4/issues
command
Issues prints a table of Github issues matching the search terms
|
Issues prints a table of Github issues matching the search terms |
|
ch4/issueshtml
command
|
|
|
ch4/nonempty
command
|
|
|
ch4/remove
command
|
|
|
ch4/reverse-rotate
command
|
|
|
ch4/treesort
command
uses a binary tree to implement an insertion sort
|
uses a binary tree to implement an insertion sort |
|
ch5/Ex5.1
command
prints the links in an HTML document read from standard input
|
prints the links in an HTML document read from standard input |
|
ch5/Ex5.12
command
prints the structure of the HTML tree in outline
|
prints the structure of the HTML tree in outline |
|
ch5/Ex5.15
command
|
|
|
ch5/Ex5.16
command
|
|
|
ch5/Ex5.17
command
|
|
|
ch5/Ex5.18
command
|
|
|
ch5/Ex5.19
command
|
|
|
ch5/Ex5.2
command
|
|
|
ch5/Ex5.3
command
|
|
|
ch5/Ex5.4
command
prints the links in an HTML document read from standard input
|
prints the links in an HTML document read from standard input |
|
ch5/Ex5.5
command
does an HTTP GET request for the HTML document url and returns the number of words and images in it
|
does an HTTP GET request for the HTML document url and returns the number of words and images in it |
|
ch5/Ex5.6
command
Computes an SVG rendering of a 3-D surface function
|
Computes an SVG rendering of a 3-D surface function |
|
ch5/Ex5.7
command
prints the structure of the HTML tree in outline
|
prints the structure of the HTML tree in outline |
|
ch5/Ex5.8
command
finds the first element with the specified id attribute
|
finds the first element with the specified id attribute |
|
ch5/Ex5.9
command
replaces each substring "$foo" within s by the text returned by f("foo")
|
replaces each substring "$foo" within s by the text returned by f("foo") |
|
ch5/defer1
command
|
|
|
ch5/defer2
command
|
|
|
ch5/fetch
command
|
|
|
ch5/findlinks1
command
prints the links in an HTML document read from standard input
|
prints the links in an HTML document read from standard input |
|
ch5/findlinks2
command
prints the links in an HTML document read from standard input
|
prints the links in an HTML document read from standard input |
|
ch5/findlinks3
command
|
|
|
ch5/links
Package links provides a link-extraction function
|
Package links provides a link-extraction function |
|
ch5/outline
command
prints the structure of the HTML tree in outline
|
prints the structure of the HTML tree in outline |
|
ch5/outline2
command
prints the structure of the HTML tree in outline
|
prints the structure of the HTML tree in outline |
|
ch5/squares
command
returns a function that returns the next square number each time it is called
|
returns a function that returns the next square number each time it is called |
|
ch5/title1
command
|
|
|
ch5/title2
command
|
|
|
ch5/title3
command
|
|
|
ch5/toposort
command
topological sorting.
|
topological sorting. |
|
ch5/trace
command
|
|
|
ch5/wait
command
|
|
|
ch6/geometry
command
|
|
|
ch6/intset
command
https://www.youtube.com/watch?v=SYoJ6gUXZvc
|
https://www.youtube.com/watch?v=SYoJ6gUXZvc |
|
ch6/urlvalues
command
|
|
|
ch7/Ex7.1
command
|
|
|
ch7/bytecounter
command
|
|
|
ch7/eval
Package eval is an evaluator for simple arithmetic expressions
|
Package eval is an evaluator for simple arithmetic expressions |
|
ch7/http1
command
|
|
|
ch7/http2
command
|
|
|
ch7/http3
command
|
|
|
ch7/sleep
command
|
|
|
ch7/sorting
command
|
|
|
ch7/surface
command
|
|
|
ch7/tempflag
command
|
|
|
ch7/xmlselect
command
Extract and print the text found beneath certain elements in an XML document tree.
|
Extract and print the text found beneath certain elements in an XML document tree. |
|
ch8/cake
Package cake provides a simulation of a concurrent cake shop with numerous parameters.
|
Package cake provides a simulation of a concurrent cake shop with numerous parameters. |
|
ch8/chat
command
|
|
|
ch8/clock1
command
a TCP server that periodically writes the time
|
a TCP server that periodically writes the time |
|
ch8/clock2
command
a TCP server that periodically writes the time
|
a TCP server that periodically writes the time |
|
ch8/countdown1
command
|
|
|
ch8/countdown2
command
|
|
|
ch8/countdown3
command
|
|
|
ch8/crawl1
command
|
|
|
ch8/crawl2
command
|
|
|
ch8/crawl3
command
|
|
|
ch8/du1
command
The `du1` command computes the disk usage of the files in a directory
|
The `du1` command computes the disk usage of the files in a directory |
|
ch8/du2
command
|
|
|
ch8/du3
command
|
|
|
ch8/du4
command
|
|
|
ch8/netcat1
command
a read-only TCP client
|
a read-only TCP client |
|
ch8/netcat2
command
a read-only TCP client
|
a read-only TCP client |
|
ch8/netcat3
command
|
|
|
ch8/pipeline1
command
|
|
|
ch8/pipeline2
command
|
|
|
ch8/pipeline3
command
|
|
|
ch8/reverb1
command
|
|
|
ch8/reverb2
command
|
|
|
ch8/spinner
command
|
|
|
ch8/thumbnail
The thumbnail package produces thumbnail-size images from larger images.
|
The thumbnail package produces thumbnail-size images from larger images. |
|
ch9/bank1
Package bank provides a concurrency-safe bank with one account.
|
Package bank provides a concurrency-safe bank with one account. |
|
ch9/maxprocs
command
|
|
|
ch9/memo1
Package memo provide a concurrency-unsafe memorization of a function of type Func.
|
Package memo provide a concurrency-unsafe memorization of a function of type Func. |
|
ch9/memotest
Package memotest provides common functions for testing various designs of the memo package.
|
Package memotest provides common functions for testing various designs of the memo package. |
Click to show internal directories.
Click to hide internal directories.