1
Defer1
Defer1 demonstrates a deferred call being invoked during a panic.
2
Defer2
Defer2 demonstrates a deferred call to runtime.Stack during a panic.
3
Fetch
Fetch saves the contents of a URL into a local file.
4
Findlinks1
Findlinks1 prints the links in an HTML document read from standard input.
5
Findlinks2
Findlinks2 does an HTTP GET on each URL, parses the result as HTML, and prints the links within it. Usage: findlinks url ...
6
Findlinks3
Findlinks3 crawls the web, starting with the URLs on the command line.
7
Links
Package links provides a link-extraction function.
8
Outline
Outline prints the outline of an HTML document tree.
9
Outline2
Outline prints the outline of an HTML document tree.
10
Squares
The squares program demonstrates a function value with state.
11
Sum
The sum program demonstrates a variadic function.
12
Title1
Title1 prints the title of an HTML document specified by a URL.
13
Title2
Title2 prints the title of an HTML document specified by a URL. It uses defer to simplify closing the response body stream.
14
Title3
Title3 prints the title of an HTML document specified by a URL.
15
Toposort
The toposort program prints the nodes of a DAG in topological order.
16
Trace
The trace program uses defer to add entry/exit diagnostics to a function.
17
Wait
The wait program waits for an HTTP server to start responding.