Examples

Package files

Internal call graph ▹

Internal call graph ▾

In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.

The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.

Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.

Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.

FileInfoHeader creates a partially-populated Header from fi.
If fi describes a symlink, FileInfoHeader records link as the link target.
If fi describes a directory, a slash is appended to the name.
Because os.FileInfo's Name method returns only the base name of
the file it describes, it may be necessary to modify the Name field
of the returned header to provide the full path name of the file.

A Reader provides sequential access to the contents of a tar archive.
A tar archive consists of a sequence of files.
The Next method advances to the next file in the archive (including the first),
and then it can be treated as an io.Reader to access the file's data.

A Writer provides sequential writing of a tar archive in POSIX.1 format.
A tar archive consists of a sequence of files.
Call WriteHeader to begin a new file, and then call Write to supply that file's data,
writing at most hdr.Size bytes in total.