github.com/slayercat/go@v0.0.0-20170428012452-c51559813f61/src/cmd/go/alldocs.go (about)

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // DO NOT EDIT THIS FILE. GENERATED BY mkalldocs.sh.
     6  // Edit the documentation in other files and rerun mkalldocs.sh to generate this one.
     7  
     8  // Go is a tool for managing Go source code.
     9  //
    10  // Usage:
    11  //
    12  // 	go command [arguments]
    13  //
    14  // The commands are:
    15  //
    16  // 	build       compile packages and dependencies
    17  // 	clean       remove object files
    18  // 	doc         show documentation for package or symbol
    19  // 	env         print Go environment information
    20  // 	bug         start a bug report
    21  // 	fix         run go tool fix on packages
    22  // 	fmt         run gofmt on package sources
    23  // 	generate    generate Go files by processing source
    24  // 	get         download and install packages and dependencies
    25  // 	install     compile and install packages and dependencies
    26  // 	list        list packages
    27  // 	run         compile and run Go program
    28  // 	test        test packages
    29  // 	tool        run specified go tool
    30  // 	version     print Go version
    31  // 	vet         run go tool vet on packages
    32  //
    33  // Use "go help [command]" for more information about a command.
    34  //
    35  // Additional help topics:
    36  //
    37  // 	c           calling between Go and C
    38  // 	buildmode   description of build modes
    39  // 	filetype    file types
    40  // 	gopath      GOPATH environment variable
    41  // 	environment environment variables
    42  // 	importpath  import path syntax
    43  // 	packages    description of package lists
    44  // 	testflag    description of testing flags
    45  // 	testfunc    description of testing functions
    46  //
    47  // Use "go help [topic]" for more information about that topic.
    48  //
    49  //
    50  // Compile packages and dependencies
    51  //
    52  // Usage:
    53  //
    54  // 	go build [-o output] [-i] [build flags] [packages]
    55  //
    56  // Build compiles the packages named by the import paths,
    57  // along with their dependencies, but it does not install the results.
    58  //
    59  // If the arguments to build are a list of .go files, build treats
    60  // them as a list of source files specifying a single package.
    61  //
    62  // When compiling a single main package, build writes
    63  // the resulting executable to an output file named after
    64  // the first source file ('go build ed.go rx.go' writes 'ed' or 'ed.exe')
    65  // or the source code directory ('go build unix/sam' writes 'sam' or 'sam.exe').
    66  // The '.exe' suffix is added when writing a Windows executable.
    67  //
    68  // When compiling multiple packages or a single non-main package,
    69  // build compiles the packages but discards the resulting object,
    70  // serving only as a check that the packages can be built.
    71  //
    72  // When compiling packages, build ignores files that end in '_test.go'.
    73  //
    74  // The -o flag, only allowed when compiling a single package,
    75  // forces build to write the resulting executable or object
    76  // to the named output file, instead of the default behavior described
    77  // in the last two paragraphs.
    78  //
    79  // The -i flag installs the packages that are dependencies of the target.
    80  //
    81  // The build flags are shared by the build, clean, get, install, list, run,
    82  // and test commands:
    83  //
    84  // 	-a
    85  // 		force rebuilding of packages that are already up-to-date.
    86  // 	-n
    87  // 		print the commands but do not run them.
    88  // 	-p n
    89  // 		the number of programs, such as build commands or
    90  // 		test binaries, that can be run in parallel.
    91  // 		The default is the number of CPUs available.
    92  // 	-race
    93  // 		enable data race detection.
    94  // 		Supported only on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64.
    95  // 	-msan
    96  // 		enable interoperation with memory sanitizer.
    97  // 		Supported only on linux/amd64,
    98  // 		and only with Clang/LLVM as the host C compiler.
    99  // 	-v
   100  // 		print the names of packages as they are compiled.
   101  // 	-work
   102  // 		print the name of the temporary work directory and
   103  // 		do not delete it when exiting.
   104  // 	-x
   105  // 		print the commands.
   106  //
   107  // 	-asmflags 'flag list'
   108  // 		arguments to pass on each go tool asm invocation.
   109  // 	-buildmode mode
   110  // 		build mode to use. See 'go help buildmode' for more.
   111  // 	-compiler name
   112  // 		name of compiler to use, as in runtime.Compiler (gccgo or gc).
   113  // 	-gccgoflags 'arg list'
   114  // 		arguments to pass on each gccgo compiler/linker invocation.
   115  // 	-gcflags 'arg list'
   116  // 		arguments to pass on each go tool compile invocation.
   117  // 	-installsuffix suffix
   118  // 		a suffix to use in the name of the package installation directory,
   119  // 		in order to keep output separate from default builds.
   120  // 		If using the -race flag, the install suffix is automatically set to race
   121  // 		or, if set explicitly, has _race appended to it.  Likewise for the -msan
   122  // 		flag.  Using a -buildmode option that requires non-default compile flags
   123  // 		has a similar effect.
   124  // 	-ldflags 'flag list'
   125  // 		arguments to pass on each go tool link invocation.
   126  // 	-linkshared
   127  // 		link against shared libraries previously created with
   128  // 		-buildmode=shared.
   129  // 	-pkgdir dir
   130  // 		install and load all packages from dir instead of the usual locations.
   131  // 		For example, when building with a non-standard configuration,
   132  // 		use -pkgdir to keep generated packages in a separate location.
   133  // 	-tags 'tag list'
   134  // 		a space-separated list of build tags to consider satisfied during the
   135  // 		build. For more information about build tags, see the description of
   136  // 		build constraints in the documentation for the go/build package.
   137  // 	-toolexec 'cmd args'
   138  // 		a program to use to invoke toolchain programs like vet and asm.
   139  // 		For example, instead of running asm, the go command will run
   140  // 		'cmd args /path/to/asm <arguments for asm>'.
   141  //
   142  // All the flags that take a list of arguments accept a space-separated
   143  // list of strings. To embed spaces in an element in the list, surround
   144  // it with either single or double quotes.
   145  //
   146  // For more about specifying packages, see 'go help packages'.
   147  // For more about where packages and binaries are installed,
   148  // run 'go help gopath'.
   149  // For more about calling between Go and C/C++, run 'go help c'.
   150  //
   151  // Note: Build adheres to certain conventions such as those described
   152  // by 'go help gopath'. Not all projects can follow these conventions,
   153  // however. Installations that have their own conventions or that use
   154  // a separate software build system may choose to use lower-level
   155  // invocations such as 'go tool compile' and 'go tool link' to avoid
   156  // some of the overheads and design decisions of the build tool.
   157  //
   158  // See also: go install, go get, go clean.
   159  //
   160  //
   161  // Remove object files
   162  //
   163  // Usage:
   164  //
   165  // 	go clean [-i] [-r] [-n] [-x] [build flags] [packages]
   166  //
   167  // Clean removes object files from package source directories.
   168  // The go command builds most objects in a temporary directory,
   169  // so go clean is mainly concerned with object files left by other
   170  // tools or by manual invocations of go build.
   171  //
   172  // Specifically, clean removes the following files from each of the
   173  // source directories corresponding to the import paths:
   174  //
   175  // 	_obj/            old object directory, left from Makefiles
   176  // 	_test/           old test directory, left from Makefiles
   177  // 	_testmain.go     old gotest file, left from Makefiles
   178  // 	test.out         old test log, left from Makefiles
   179  // 	build.out        old test log, left from Makefiles
   180  // 	*.[568ao]        object files, left from Makefiles
   181  //
   182  // 	DIR(.exe)        from go build
   183  // 	DIR.test(.exe)   from go test -c
   184  // 	MAINFILE(.exe)   from go build MAINFILE.go
   185  // 	*.so             from SWIG
   186  //
   187  // In the list, DIR represents the final path element of the
   188  // directory, and MAINFILE is the base name of any Go source
   189  // file in the directory that is not included when building
   190  // the package.
   191  //
   192  // The -i flag causes clean to remove the corresponding installed
   193  // archive or binary (what 'go install' would create).
   194  //
   195  // The -n flag causes clean to print the remove commands it would execute,
   196  // but not run them.
   197  //
   198  // The -r flag causes clean to be applied recursively to all the
   199  // dependencies of the packages named by the import paths.
   200  //
   201  // The -x flag causes clean to print remove commands as it executes them.
   202  //
   203  // For more about build flags, see 'go help build'.
   204  //
   205  // For more about specifying packages, see 'go help packages'.
   206  //
   207  //
   208  // Show documentation for package or symbol
   209  //
   210  // Usage:
   211  //
   212  // 	go doc [-u] [-c] [package|[package.]symbol[.methodOrField]]
   213  //
   214  // Doc prints the documentation comments associated with the item identified by its
   215  // arguments (a package, const, func, type, var, method, or struct field)
   216  // followed by a one-line summary of each of the first-level items "under"
   217  // that item (package-level declarations for a package, methods for a type,
   218  // etc.).
   219  //
   220  // Doc accepts zero, one, or two arguments.
   221  //
   222  // Given no arguments, that is, when run as
   223  //
   224  // 	go doc
   225  //
   226  // it prints the package documentation for the package in the current directory.
   227  // If the package is a command (package main), the exported symbols of the package
   228  // are elided from the presentation unless the -cmd flag is provided.
   229  //
   230  // When run with one argument, the argument is treated as a Go-syntax-like
   231  // representation of the item to be documented. What the argument selects depends
   232  // on what is installed in GOROOT and GOPATH, as well as the form of the argument,
   233  // which is schematically one of these:
   234  //
   235  // 	go doc <pkg>
   236  // 	go doc <sym>[.<methodOrField>]
   237  // 	go doc [<pkg>.]<sym>[.<methodOrField>]
   238  // 	go doc [<pkg>.][<sym>.]<methodOrField>
   239  //
   240  // The first item in this list matched by the argument is the one whose documentation
   241  // is printed. (See the examples below.) However, if the argument starts with a capital
   242  // letter it is assumed to identify a symbol or method in the current directory.
   243  //
   244  // For packages, the order of scanning is determined lexically in breadth-first order.
   245  // That is, the package presented is the one that matches the search and is nearest
   246  // the root and lexically first at its level of the hierarchy.  The GOROOT tree is
   247  // always scanned in its entirety before GOPATH.
   248  //
   249  // If there is no package specified or matched, the package in the current
   250  // directory is selected, so "go doc Foo" shows the documentation for symbol Foo in
   251  // the current package.
   252  //
   253  // The package path must be either a qualified path or a proper suffix of a
   254  // path. The go tool's usual package mechanism does not apply: package path
   255  // elements like . and ... are not implemented by go doc.
   256  //
   257  // When run with two arguments, the first must be a full package path (not just a
   258  // suffix), and the second is a symbol, or symbol with method or struct field.
   259  // This is similar to the syntax accepted by godoc:
   260  //
   261  // 	go doc <pkg> <sym>[.<methodOrField>]
   262  //
   263  // In all forms, when matching symbols, lower-case letters in the argument match
   264  // either case but upper-case letters match exactly. This means that there may be
   265  // multiple matches of a lower-case argument in a package if different symbols have
   266  // different cases. If this occurs, documentation for all matches is printed.
   267  //
   268  // Examples:
   269  // 	go doc
   270  // 		Show documentation for current package.
   271  // 	go doc Foo
   272  // 		Show documentation for Foo in the current package.
   273  // 		(Foo starts with a capital letter so it cannot match
   274  // 		a package path.)
   275  // 	go doc encoding/json
   276  // 		Show documentation for the encoding/json package.
   277  // 	go doc json
   278  // 		Shorthand for encoding/json.
   279  // 	go doc json.Number (or go doc json.number)
   280  // 		Show documentation and method summary for json.Number.
   281  // 	go doc json.Number.Int64 (or go doc json.number.int64)
   282  // 		Show documentation for json.Number's Int64 method.
   283  // 	go doc cmd/doc
   284  // 		Show package docs for the doc command.
   285  // 	go doc -cmd cmd/doc
   286  // 		Show package docs and exported symbols within the doc command.
   287  // 	go doc template.new
   288  // 		Show documentation for html/template's New function.
   289  // 		(html/template is lexically before text/template)
   290  // 	go doc text/template.new # One argument
   291  // 		Show documentation for text/template's New function.
   292  // 	go doc text/template new # Two arguments
   293  // 		Show documentation for text/template's New function.
   294  //
   295  // 	At least in the current tree, these invocations all print the
   296  // 	documentation for json.Decoder's Decode method:
   297  //
   298  // 	go doc json.Decoder.Decode
   299  // 	go doc json.decoder.decode
   300  // 	go doc json.decode
   301  // 	cd go/src/encoding/json; go doc decode
   302  //
   303  // Flags:
   304  // 	-c
   305  // 		Respect case when matching symbols.
   306  // 	-cmd
   307  // 		Treat a command (package main) like a regular package.
   308  // 		Otherwise package main's exported symbols are hidden
   309  // 		when showing the package's top-level documentation.
   310  // 	-u
   311  // 		Show documentation for unexported as well as exported
   312  // 		symbols, methods, and fields.
   313  //
   314  //
   315  // Print Go environment information
   316  //
   317  // Usage:
   318  //
   319  // 	go env [-json] [var ...]
   320  //
   321  // Env prints Go environment information.
   322  //
   323  // By default env prints information as a shell script
   324  // (on Windows, a batch file).  If one or more variable
   325  // names is given as arguments,  env prints the value of
   326  // each named variable on its own line.
   327  //
   328  // The -json flag prints the environment in JSON format
   329  // instead of as a shell script.
   330  //
   331  //
   332  // Start a bug report
   333  //
   334  // Usage:
   335  //
   336  // 	go bug
   337  //
   338  // Bug opens the default browser and starts a new bug report.
   339  // The report includes useful system information.
   340  //
   341  //
   342  // Run go tool fix on packages
   343  //
   344  // Usage:
   345  //
   346  // 	go fix [packages]
   347  //
   348  // Fix runs the Go fix command on the packages named by the import paths.
   349  //
   350  // For more about fix, see 'go doc cmd/fix'.
   351  // For more about specifying packages, see 'go help packages'.
   352  //
   353  // To run fix with specific options, run 'go tool fix'.
   354  //
   355  // See also: go fmt, go vet.
   356  //
   357  //
   358  // Run gofmt on package sources
   359  //
   360  // Usage:
   361  //
   362  // 	go fmt [-n] [-x] [packages]
   363  //
   364  // Fmt runs the command 'gofmt -l -w' on the packages named
   365  // by the import paths.  It prints the names of the files that are modified.
   366  //
   367  // For more about gofmt, see 'go doc cmd/gofmt'.
   368  // For more about specifying packages, see 'go help packages'.
   369  //
   370  // The -n flag prints commands that would be executed.
   371  // The -x flag prints commands as they are executed.
   372  //
   373  // To run gofmt with specific options, run gofmt itself.
   374  //
   375  // See also: go fix, go vet.
   376  //
   377  //
   378  // Generate Go files by processing source
   379  //
   380  // Usage:
   381  //
   382  // 	go generate [-run regexp] [-n] [-v] [-x] [build flags] [file.go... | packages]
   383  //
   384  // Generate runs commands described by directives within existing
   385  // files. Those commands can run any process but the intent is to
   386  // create or update Go source files.
   387  //
   388  // Go generate is never run automatically by go build, go get, go test,
   389  // and so on. It must be run explicitly.
   390  //
   391  // Go generate scans the file for directives, which are lines of
   392  // the form,
   393  //
   394  // 	//go:generate command argument...
   395  //
   396  // (note: no leading spaces and no space in "//go") where command
   397  // is the generator to be run, corresponding to an executable file
   398  // that can be run locally. It must either be in the shell path
   399  // (gofmt), a fully qualified path (/usr/you/bin/mytool), or a
   400  // command alias, described below.
   401  //
   402  // Note that go generate does not parse the file, so lines that look
   403  // like directives in comments or multiline strings will be treated
   404  // as directives.
   405  //
   406  // The arguments to the directive are space-separated tokens or
   407  // double-quoted strings passed to the generator as individual
   408  // arguments when it is run.
   409  //
   410  // Quoted strings use Go syntax and are evaluated before execution; a
   411  // quoted string appears as a single argument to the generator.
   412  //
   413  // Go generate sets several variables when it runs the generator:
   414  //
   415  // 	$GOARCH
   416  // 		The execution architecture (arm, amd64, etc.)
   417  // 	$GOOS
   418  // 		The execution operating system (linux, windows, etc.)
   419  // 	$GOFILE
   420  // 		The base name of the file.
   421  // 	$GOLINE
   422  // 		The line number of the directive in the source file.
   423  // 	$GOPACKAGE
   424  // 		The name of the package of the file containing the directive.
   425  // 	$DOLLAR
   426  // 		A dollar sign.
   427  //
   428  // Other than variable substitution and quoted-string evaluation, no
   429  // special processing such as "globbing" is performed on the command
   430  // line.
   431  //
   432  // As a last step before running the command, any invocations of any
   433  // environment variables with alphanumeric names, such as $GOFILE or
   434  // $HOME, are expanded throughout the command line. The syntax for
   435  // variable expansion is $NAME on all operating systems.  Due to the
   436  // order of evaluation, variables are expanded even inside quoted
   437  // strings. If the variable NAME is not set, $NAME expands to the
   438  // empty string.
   439  //
   440  // A directive of the form,
   441  //
   442  // 	//go:generate -command xxx args...
   443  //
   444  // specifies, for the remainder of this source file only, that the
   445  // string xxx represents the command identified by the arguments. This
   446  // can be used to create aliases or to handle multiword generators.
   447  // For example,
   448  //
   449  // 	//go:generate -command foo go tool foo
   450  //
   451  // specifies that the command "foo" represents the generator
   452  // "go tool foo".
   453  //
   454  // Generate processes packages in the order given on the command line,
   455  // one at a time. If the command line lists .go files, they are treated
   456  // as a single package. Within a package, generate processes the
   457  // source files in a package in file name order, one at a time. Within
   458  // a source file, generate runs generators in the order they appear
   459  // in the file, one at a time.
   460  //
   461  // If any generator returns an error exit status, "go generate" skips
   462  // all further processing for that package.
   463  //
   464  // The generator is run in the package's source directory.
   465  //
   466  // Go generate accepts one specific flag:
   467  //
   468  // 	-run=""
   469  // 		if non-empty, specifies a regular expression to select
   470  // 		directives whose full original source text (excluding
   471  // 		any trailing spaces and final newline) matches the
   472  // 		expression.
   473  //
   474  // It also accepts the standard build flags including -v, -n, and -x.
   475  // The -v flag prints the names of packages and files as they are
   476  // processed.
   477  // The -n flag prints commands that would be executed.
   478  // The -x flag prints commands as they are executed.
   479  //
   480  // For more about build flags, see 'go help build'.
   481  //
   482  // For more about specifying packages, see 'go help packages'.
   483  //
   484  //
   485  // Download and install packages and dependencies
   486  //
   487  // Usage:
   488  //
   489  // 	go get [-d] [-f] [-fix] [-insecure] [-t] [-u] [build flags] [packages]
   490  //
   491  // Get downloads the packages named by the import paths, along with their
   492  // dependencies. It then installs the named packages, like 'go install'.
   493  //
   494  // The -d flag instructs get to stop after downloading the packages; that is,
   495  // it instructs get not to install the packages.
   496  //
   497  // The -f flag, valid only when -u is set, forces get -u not to verify that
   498  // each package has been checked out from the source control repository
   499  // implied by its import path. This can be useful if the source is a local fork
   500  // of the original.
   501  //
   502  // The -fix flag instructs get to run the fix tool on the downloaded packages
   503  // before resolving dependencies or building the code.
   504  //
   505  // The -insecure flag permits fetching from repositories and resolving
   506  // custom domains using insecure schemes such as HTTP. Use with caution.
   507  //
   508  // The -t flag instructs get to also download the packages required to build
   509  // the tests for the specified packages.
   510  //
   511  // The -u flag instructs get to use the network to update the named packages
   512  // and their dependencies.  By default, get uses the network to check out
   513  // missing packages but does not use it to look for updates to existing packages.
   514  //
   515  // The -v flag enables verbose progress and debug output.
   516  //
   517  // Get also accepts build flags to control the installation. See 'go help build'.
   518  //
   519  // When checking out a new package, get creates the target directory
   520  // GOPATH/src/<import-path>. If the GOPATH contains multiple entries,
   521  // get uses the first one. For more details see: 'go help gopath'.
   522  //
   523  // When checking out or updating a package, get looks for a branch or tag
   524  // that matches the locally installed version of Go. The most important
   525  // rule is that if the local installation is running version "go1", get
   526  // searches for a branch or tag named "go1". If no such version exists it
   527  // retrieves the most recent version of the package.
   528  //
   529  // When go get checks out or updates a Git repository,
   530  // it also updates any git submodules referenced by the repository.
   531  //
   532  // Get never checks out or updates code stored in vendor directories.
   533  //
   534  // For more about specifying packages, see 'go help packages'.
   535  //
   536  // For more about how 'go get' finds source code to
   537  // download, see 'go help importpath'.
   538  //
   539  // See also: go build, go install, go clean.
   540  //
   541  //
   542  // Compile and install packages and dependencies
   543  //
   544  // Usage:
   545  //
   546  // 	go install [build flags] [packages]
   547  //
   548  // Install compiles and installs the packages named by the import paths,
   549  // along with their dependencies.
   550  //
   551  // For more about the build flags, see 'go help build'.
   552  // For more about specifying packages, see 'go help packages'.
   553  //
   554  // See also: go build, go get, go clean.
   555  //
   556  //
   557  // List packages
   558  //
   559  // Usage:
   560  //
   561  // 	go list [-e] [-f format] [-json] [build flags] [packages]
   562  //
   563  // List lists the packages named by the import paths, one per line.
   564  //
   565  // The default output shows the package import path:
   566  //
   567  //     bytes
   568  //     encoding/json
   569  //     github.com/gorilla/mux
   570  //     golang.org/x/net/html
   571  //
   572  // The -f flag specifies an alternate format for the list, using the
   573  // syntax of package template.  The default output is equivalent to -f
   574  // '{{.ImportPath}}'. The struct being passed to the template is:
   575  //
   576  //     type Package struct {
   577  //         Dir           string // directory containing package sources
   578  //         ImportPath    string // import path of package in dir
   579  //         ImportComment string // path in import comment on package statement
   580  //         Name          string // package name
   581  //         Doc           string // package documentation string
   582  //         Target        string // install path
   583  //         Shlib         string // the shared library that contains this package (only set when -linkshared)
   584  //         Goroot        bool   // is this package in the Go root?
   585  //         Standard      bool   // is this package part of the standard Go library?
   586  //         Stale         bool   // would 'go install' do anything for this package?
   587  //         StaleReason   string // explanation for Stale==true
   588  //         Root          string // Go root or Go path dir containing this package
   589  //         ConflictDir   string // this directory shadows Dir in $GOPATH
   590  //         BinaryOnly    bool   // binary-only package: cannot be recompiled from sources
   591  //
   592  //         // Source files
   593  //         GoFiles        []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
   594  //         CgoFiles       []string // .go sources files that import "C"
   595  //         IgnoredGoFiles []string // .go sources ignored due to build constraints
   596  //         CFiles         []string // .c source files
   597  //         CXXFiles       []string // .cc, .cxx and .cpp source files
   598  //         MFiles         []string // .m source files
   599  //         HFiles         []string // .h, .hh, .hpp and .hxx source files
   600  //         FFiles         []string // .f, .F, .for and .f90 Fortran source files
   601  //         SFiles         []string // .s source files
   602  //         SwigFiles      []string // .swig files
   603  //         SwigCXXFiles   []string // .swigcxx files
   604  //         SysoFiles      []string // .syso object files to add to archive
   605  //         TestGoFiles    []string // _test.go files in package
   606  //         XTestGoFiles   []string // _test.go files outside package
   607  //
   608  //         // Cgo directives
   609  //         CgoCFLAGS    []string // cgo: flags for C compiler
   610  //         CgoCPPFLAGS  []string // cgo: flags for C preprocessor
   611  //         CgoCXXFLAGS  []string // cgo: flags for C++ compiler
   612  //         CgoFFLAGS    []string // cgo: flags for Fortran compiler
   613  //         CgoLDFLAGS   []string // cgo: flags for linker
   614  //         CgoPkgConfig []string // cgo: pkg-config names
   615  //
   616  //         // Dependency information
   617  //         Imports      []string // import paths used by this package
   618  //         Deps         []string // all (recursively) imported dependencies
   619  //         TestImports  []string // imports from TestGoFiles
   620  //         XTestImports []string // imports from XTestGoFiles
   621  //
   622  //         // Error information
   623  //         Incomplete bool            // this package or a dependency has an error
   624  //         Error      *PackageError   // error loading package
   625  //         DepsErrors []*PackageError // errors loading dependencies
   626  //     }
   627  //
   628  // Packages stored in vendor directories report an ImportPath that includes the
   629  // path to the vendor directory (for example, "d/vendor/p" instead of "p"),
   630  // so that the ImportPath uniquely identifies a given copy of a package.
   631  // The Imports, Deps, TestImports, and XTestImports lists also contain these
   632  // expanded imports paths. See golang.org/s/go15vendor for more about vendoring.
   633  //
   634  // The error information, if any, is
   635  //
   636  //     type PackageError struct {
   637  //         ImportStack   []string // shortest path from package named on command line to this one
   638  //         Pos           string   // position of error (if present, file:line:col)
   639  //         Err           string   // the error itself
   640  //     }
   641  //
   642  // The template function "join" calls strings.Join.
   643  //
   644  // The template function "context" returns the build context, defined as:
   645  //
   646  // 	type Context struct {
   647  // 		GOARCH        string   // target architecture
   648  // 		GOOS          string   // target operating system
   649  // 		GOROOT        string   // Go root
   650  // 		GOPATH        string   // Go path
   651  // 		CgoEnabled    bool     // whether cgo can be used
   652  // 		UseAllFiles   bool     // use files regardless of +build lines, file names
   653  // 		Compiler      string   // compiler to assume when computing target paths
   654  // 		BuildTags     []string // build constraints to match in +build lines
   655  // 		ReleaseTags   []string // releases the current release is compatible with
   656  // 		InstallSuffix string   // suffix to use in the name of the install dir
   657  // 	}
   658  //
   659  // For more information about the meaning of these fields see the documentation
   660  // for the go/build package's Context type.
   661  //
   662  // The -json flag causes the package data to be printed in JSON format
   663  // instead of using the template format.
   664  //
   665  // The -e flag changes the handling of erroneous packages, those that
   666  // cannot be found or are malformed.  By default, the list command
   667  // prints an error to standard error for each erroneous package and
   668  // omits the packages from consideration during the usual printing.
   669  // With the -e flag, the list command never prints errors to standard
   670  // error and instead processes the erroneous packages with the usual
   671  // printing.  Erroneous packages will have a non-empty ImportPath and
   672  // a non-nil Error field; other information may or may not be missing
   673  // (zeroed).
   674  //
   675  // For more about build flags, see 'go help build'.
   676  //
   677  // For more about specifying packages, see 'go help packages'.
   678  //
   679  //
   680  // Compile and run Go program
   681  //
   682  // Usage:
   683  //
   684  // 	go run [build flags] [-exec xprog] gofiles... [arguments...]
   685  //
   686  // Run compiles and runs the main package comprising the named Go source files.
   687  // A Go source file is defined to be a file ending in a literal ".go" suffix.
   688  //
   689  // By default, 'go run' runs the compiled binary directly: 'a.out arguments...'.
   690  // If the -exec flag is given, 'go run' invokes the binary using xprog:
   691  // 	'xprog a.out arguments...'.
   692  // If the -exec flag is not given, GOOS or GOARCH is different from the system
   693  // default, and a program named go_$GOOS_$GOARCH_exec can be found
   694  // on the current search path, 'go run' invokes the binary using that program,
   695  // for example 'go_nacl_386_exec a.out arguments...'. This allows execution of
   696  // cross-compiled programs when a simulator or other execution method is
   697  // available.
   698  //
   699  // For more about build flags, see 'go help build'.
   700  //
   701  // See also: go build.
   702  //
   703  //
   704  // Test packages
   705  //
   706  // Usage:
   707  //
   708  // 	go test [build/test flags] [packages] [build/test flags & test binary flags]
   709  //
   710  // 'Go test' automates testing the packages named by the import paths.
   711  // It prints a summary of the test results in the format:
   712  //
   713  // 	ok   archive/tar   0.011s
   714  // 	FAIL archive/zip   0.022s
   715  // 	ok   compress/gzip 0.033s
   716  // 	...
   717  //
   718  // followed by detailed output for each failed package.
   719  //
   720  // 'Go test' recompiles each package along with any files with names matching
   721  // the file pattern "*_test.go".
   722  // Files whose names begin with "_" (including "_test.go") or "." are ignored.
   723  // These additional files can contain test functions, benchmark functions, and
   724  // example functions.  See 'go help testfunc' for more.
   725  // Each listed package causes the execution of a separate test binary.
   726  //
   727  // Test files that declare a package with the suffix "_test" will be compiled as a
   728  // separate package, and then linked and run with the main test binary.
   729  //
   730  // The go tool will ignore a directory named "testdata", making it available
   731  // to hold ancillary data needed by the tests.
   732  //
   733  // By default, go test needs no arguments.  It compiles and tests the package
   734  // with source in the current directory, including tests, and runs the tests.
   735  //
   736  // The package is built in a temporary directory so it does not interfere with the
   737  // non-test installation.
   738  //
   739  // In addition to the build flags, the flags handled by 'go test' itself are:
   740  //
   741  // 	-args
   742  // 	    Pass the remainder of the command line (everything after -args)
   743  // 	    to the test binary, uninterpreted and unchanged.
   744  // 	    Because this flag consumes the remainder of the command line,
   745  // 	    the package list (if present) must appear before this flag.
   746  //
   747  // 	-c
   748  // 	    Compile the test binary to pkg.test but do not run it
   749  // 	    (where pkg is the last element of the package's import path).
   750  // 	    The file name can be changed with the -o flag.
   751  //
   752  // 	-exec xprog
   753  // 	    Run the test binary using xprog. The behavior is the same as
   754  // 	    in 'go run'. See 'go help run' for details.
   755  //
   756  // 	-i
   757  // 	    Install packages that are dependencies of the test.
   758  // 	    Do not run the test.
   759  //
   760  // 	-o file
   761  // 	    Compile the test binary to the named file.
   762  // 	    The test still runs (unless -c or -i is specified).
   763  //
   764  // The test binary also accepts flags that control execution of the test; these
   765  // flags are also accessible by 'go test'. See 'go help testflag' for details.
   766  //
   767  // For more about build flags, see 'go help build'.
   768  // For more about specifying packages, see 'go help packages'.
   769  //
   770  // See also: go build, go vet.
   771  //
   772  //
   773  // Run specified go tool
   774  //
   775  // Usage:
   776  //
   777  // 	go tool [-n] command [args...]
   778  //
   779  // Tool runs the go tool command identified by the arguments.
   780  // With no arguments it prints the list of known tools.
   781  //
   782  // The -n flag causes tool to print the command that would be
   783  // executed but not execute it.
   784  //
   785  // For more about each tool command, see 'go tool command -h'.
   786  //
   787  //
   788  // Print Go version
   789  //
   790  // Usage:
   791  //
   792  // 	go version
   793  //
   794  // Version prints the Go version, as reported by runtime.Version.
   795  //
   796  //
   797  // Run go tool vet on packages
   798  //
   799  // Usage:
   800  //
   801  // 	go vet [-n] [-x] [build flags] [vet flags] [packages]
   802  //
   803  // Vet runs the Go vet command on the packages named by the import paths.
   804  //
   805  // For more about vet and its flags, see 'go doc cmd/vet'.
   806  // For more about specifying packages, see 'go help packages'.
   807  //
   808  // The -n flag prints commands that would be executed.
   809  // The -x flag prints commands as they are executed.
   810  //
   811  // For more about build flags, see 'go help build'.
   812  //
   813  // See also: go fmt, go fix.
   814  //
   815  //
   816  // Calling between Go and C
   817  //
   818  // There are two different ways to call between Go and C/C++ code.
   819  //
   820  // The first is the cgo tool, which is part of the Go distribution.  For
   821  // information on how to use it see the cgo documentation (go doc cmd/cgo).
   822  //
   823  // The second is the SWIG program, which is a general tool for
   824  // interfacing between languages.  For information on SWIG see
   825  // http://swig.org/.  When running go build, any file with a .swig
   826  // extension will be passed to SWIG.  Any file with a .swigcxx extension
   827  // will be passed to SWIG with the -c++ option.
   828  //
   829  // When either cgo or SWIG is used, go build will pass any .c, .m, .s,
   830  // or .S files to the C compiler, and any .cc, .cpp, .cxx files to the C++
   831  // compiler.  The CC or CXX environment variables may be set to determine
   832  // the C or C++ compiler, respectively, to use.
   833  //
   834  //
   835  // Description of build modes
   836  //
   837  // The 'go build' and 'go install' commands take a -buildmode argument which
   838  // indicates which kind of object file is to be built. Currently supported values
   839  // are:
   840  //
   841  // 	-buildmode=archive
   842  // 		Build the listed non-main packages into .a files. Packages named
   843  // 		main are ignored.
   844  //
   845  // 	-buildmode=c-archive
   846  // 		Build the listed main package, plus all packages it imports,
   847  // 		into a C archive file. The only callable symbols will be those
   848  // 		functions exported using a cgo //export comment. Requires
   849  // 		exactly one main package to be listed.
   850  //
   851  // 	-buildmode=c-shared
   852  // 		Build the listed main packages, plus all packages that they
   853  // 		import, into C shared libraries. The only callable symbols will
   854  // 		be those functions exported using a cgo //export comment.
   855  // 		Non-main packages are ignored.
   856  //
   857  // 	-buildmode=default
   858  // 		Listed main packages are built into executables and listed
   859  // 		non-main packages are built into .a files (the default
   860  // 		behavior).
   861  //
   862  // 	-buildmode=shared
   863  // 		Combine all the listed non-main packages into a single shared
   864  // 		library that will be used when building with the -linkshared
   865  // 		option. Packages named main are ignored.
   866  //
   867  // 	-buildmode=exe
   868  // 		Build the listed main packages and everything they import into
   869  // 		executables. Packages not named main are ignored.
   870  //
   871  // 	-buildmode=pie
   872  // 		Build the listed main packages and everything they import into
   873  // 		position independent executables (PIE). Packages not named
   874  // 		main are ignored.
   875  //
   876  // 	-buildmode=plugin
   877  // 		Build the listed main packages, plus all packages that they
   878  // 		import, into a Go plugin. Packages not named main are ignored.
   879  //
   880  //
   881  // File types
   882  //
   883  // The go command examines the contents of a restricted set of files
   884  // in each directory. It identifies which files to examine based on
   885  // the extension of the file name. These extensions are:
   886  //
   887  // 	.go
   888  // 		Go source files.
   889  // 	.c, .h
   890  // 		C source files.
   891  // 		If the package uses cgo or SWIG, these will be compiled with the
   892  // 		OS-native compiler (typically gcc); otherwise they will
   893  // 		trigger an error.
   894  // 	.cc, .cpp, .cxx, .hh, .hpp, .hxx
   895  // 		C++ source files. Only useful with cgo or SWIG, and always
   896  // 		compiled with the OS-native compiler.
   897  // 	.m
   898  // 		Objective-C source files. Only useful with cgo, and always
   899  // 		compiled with the OS-native compiler.
   900  // 	.s, .S
   901  // 		Assembler source files.
   902  // 		If the package uses cgo or SWIG, these will be assembled with the
   903  // 		OS-native assembler (typically gcc (sic)); otherwise they
   904  // 		will be assembled with the Go assembler.
   905  // 	.swig, .swigcxx
   906  // 		SWIG definition files.
   907  // 	.syso
   908  // 		System object files.
   909  //
   910  // Files of each of these types except .syso may contain build
   911  // constraints, but the go command stops scanning for build constraints
   912  // at the first item in the file that is not a blank line or //-style
   913  // line comment. See the go/build package documentation for
   914  // more details.
   915  //
   916  // Non-test Go source files can also include a //go:binary-only-package
   917  // comment, indicating that the package sources are included
   918  // for documentation only and must not be used to build the
   919  // package binary. This enables distribution of Go packages in
   920  // their compiled form alone. See the go/build package documentation
   921  // for more details.
   922  //
   923  //
   924  // GOPATH environment variable
   925  //
   926  // The Go path is used to resolve import statements.
   927  // It is implemented by and documented in the go/build package.
   928  //
   929  // The GOPATH environment variable lists places to look for Go code.
   930  // On Unix, the value is a colon-separated string.
   931  // On Windows, the value is a semicolon-separated string.
   932  // On Plan 9, the value is a list.
   933  //
   934  // If the environment variable is unset, GOPATH defaults
   935  // to a subdirectory named "go" in the user's home directory
   936  // ($HOME/go on Unix, %USERPROFILE%\go on Windows),
   937  // unless that directory holds a Go distribution.
   938  // Run "go env GOPATH" to see the current GOPATH.
   939  //
   940  // See https://golang.org/wiki/SettingGOPATH to set a custom GOPATH.
   941  //
   942  // Each directory listed in GOPATH must have a prescribed structure:
   943  //
   944  // The src directory holds source code.  The path below src
   945  // determines the import path or executable name.
   946  //
   947  // The pkg directory holds installed package objects.
   948  // As in the Go tree, each target operating system and
   949  // architecture pair has its own subdirectory of pkg
   950  // (pkg/GOOS_GOARCH).
   951  //
   952  // If DIR is a directory listed in the GOPATH, a package with
   953  // source in DIR/src/foo/bar can be imported as "foo/bar" and
   954  // has its compiled form installed to "DIR/pkg/GOOS_GOARCH/foo/bar.a".
   955  //
   956  // The bin directory holds compiled commands.
   957  // Each command is named for its source directory, but only
   958  // the final element, not the entire path.  That is, the
   959  // command with source in DIR/src/foo/quux is installed into
   960  // DIR/bin/quux, not DIR/bin/foo/quux.  The "foo/" prefix is stripped
   961  // so that you can add DIR/bin to your PATH to get at the
   962  // installed commands.  If the GOBIN environment variable is
   963  // set, commands are installed to the directory it names instead
   964  // of DIR/bin. GOBIN must be an absolute path.
   965  //
   966  // Here's an example directory layout:
   967  //
   968  //     GOPATH=/home/user/go
   969  //
   970  //     /home/user/go/
   971  //         src/
   972  //             foo/
   973  //                 bar/               (go code in package bar)
   974  //                     x.go
   975  //                 quux/              (go code in package main)
   976  //                     y.go
   977  //         bin/
   978  //             quux                   (installed command)
   979  //         pkg/
   980  //             linux_amd64/
   981  //                 foo/
   982  //                     bar.a          (installed package object)
   983  //
   984  // Go searches each directory listed in GOPATH to find source code,
   985  // but new packages are always downloaded into the first directory
   986  // in the list.
   987  //
   988  // See https://golang.org/doc/code.html for an example.
   989  //
   990  // Internal Directories
   991  //
   992  // Code in or below a directory named "internal" is importable only
   993  // by code in the directory tree rooted at the parent of "internal".
   994  // Here's an extended version of the directory layout above:
   995  //
   996  //     /home/user/go/
   997  //         src/
   998  //             crash/
   999  //                 bang/              (go code in package bang)
  1000  //                     b.go
  1001  //             foo/                   (go code in package foo)
  1002  //                 f.go
  1003  //                 bar/               (go code in package bar)
  1004  //                     x.go
  1005  //                 internal/
  1006  //                     baz/           (go code in package baz)
  1007  //                         z.go
  1008  //                 quux/              (go code in package main)
  1009  //                     y.go
  1010  //
  1011  //
  1012  // The code in z.go is imported as "foo/internal/baz", but that
  1013  // import statement can only appear in source files in the subtree
  1014  // rooted at foo. The source files foo/f.go, foo/bar/x.go, and
  1015  // foo/quux/y.go can all import "foo/internal/baz", but the source file
  1016  // crash/bang/b.go cannot.
  1017  //
  1018  // See https://golang.org/s/go14internal for details.
  1019  //
  1020  // Vendor Directories
  1021  //
  1022  // Go 1.6 includes support for using local copies of external dependencies
  1023  // to satisfy imports of those dependencies, often referred to as vendoring.
  1024  //
  1025  // Code below a directory named "vendor" is importable only
  1026  // by code in the directory tree rooted at the parent of "vendor",
  1027  // and only using an import path that omits the prefix up to and
  1028  // including the vendor element.
  1029  //
  1030  // Here's the example from the previous section,
  1031  // but with the "internal" directory renamed to "vendor"
  1032  // and a new foo/vendor/crash/bang directory added:
  1033  //
  1034  //     /home/user/go/
  1035  //         src/
  1036  //             crash/
  1037  //                 bang/              (go code in package bang)
  1038  //                     b.go
  1039  //             foo/                   (go code in package foo)
  1040  //                 f.go
  1041  //                 bar/               (go code in package bar)
  1042  //                     x.go
  1043  //                 vendor/
  1044  //                     crash/
  1045  //                         bang/      (go code in package bang)
  1046  //                             b.go
  1047  //                     baz/           (go code in package baz)
  1048  //                         z.go
  1049  //                 quux/              (go code in package main)
  1050  //                     y.go
  1051  //
  1052  // The same visibility rules apply as for internal, but the code
  1053  // in z.go is imported as "baz", not as "foo/vendor/baz".
  1054  //
  1055  // Code in vendor directories deeper in the source tree shadows
  1056  // code in higher directories. Within the subtree rooted at foo, an import
  1057  // of "crash/bang" resolves to "foo/vendor/crash/bang", not the
  1058  // top-level "crash/bang".
  1059  //
  1060  // Code in vendor directories is not subject to import path
  1061  // checking (see 'go help importpath').
  1062  //
  1063  // When 'go get' checks out or updates a git repository, it now also
  1064  // updates submodules.
  1065  //
  1066  // Vendor directories do not affect the placement of new repositories
  1067  // being checked out for the first time by 'go get': those are always
  1068  // placed in the main GOPATH, never in a vendor subtree.
  1069  //
  1070  // See https://golang.org/s/go15vendor for details.
  1071  //
  1072  //
  1073  // Environment variables
  1074  //
  1075  // The go command, and the tools it invokes, examine a few different
  1076  // environment variables. For many of these, you can see the default
  1077  // value of on your system by running 'go env NAME', where NAME is the
  1078  // name of the variable.
  1079  //
  1080  // General-purpose environment variables:
  1081  //
  1082  // 	GCCGO
  1083  // 		The gccgo command to run for 'go build -compiler=gccgo'.
  1084  // 	GOARCH
  1085  // 		The architecture, or processor, for which to compile code.
  1086  // 		Examples are amd64, 386, arm, ppc64.
  1087  // 	GOBIN
  1088  // 		The directory where 'go install' will install a command.
  1089  // 	GOOS
  1090  // 		The operating system for which to compile code.
  1091  // 		Examples are linux, darwin, windows, netbsd.
  1092  // 	GOPATH
  1093  // 		For more details see: 'go help gopath'.
  1094  // 	GORACE
  1095  // 		Options for the race detector.
  1096  // 		See https://golang.org/doc/articles/race_detector.html.
  1097  // 	GOROOT
  1098  // 		The root of the go tree.
  1099  //
  1100  // Environment variables for use with cgo:
  1101  //
  1102  // 	CC
  1103  // 		The command to use to compile C code.
  1104  // 	CGO_ENABLED
  1105  // 		Whether the cgo command is supported.  Either 0 or 1.
  1106  // 	CGO_CFLAGS
  1107  // 		Flags that cgo will pass to the compiler when compiling
  1108  // 		C code.
  1109  // 	CGO_CPPFLAGS
  1110  // 		Flags that cgo will pass to the compiler when compiling
  1111  // 		C or C++ code.
  1112  // 	CGO_CXXFLAGS
  1113  // 		Flags that cgo will pass to the compiler when compiling
  1114  // 		C++ code.
  1115  // 	CGO_FFLAGS
  1116  // 		Flags that cgo will pass to the compiler when compiling
  1117  // 		Fortran code.
  1118  // 	CGO_LDFLAGS
  1119  // 		Flags that cgo will pass to the compiler when linking.
  1120  // 	CXX
  1121  // 		The command to use to compile C++ code.
  1122  // 	PKG_CONFIG
  1123  // 		Path to pkg-config tool.
  1124  //
  1125  // Architecture-specific environment variables:
  1126  //
  1127  // 	GOARM
  1128  // 		For GOARCH=arm, the ARM architecture for which to compile.
  1129  // 		Valid values are 5, 6, 7.
  1130  // 	GO386
  1131  // 		For GOARCH=386, the floating point instruction set.
  1132  // 		Valid values are 387, sse2.
  1133  //
  1134  // Special-purpose environment variables:
  1135  //
  1136  // 	GOROOT_FINAL
  1137  // 		The root of the installed Go tree, when it is
  1138  // 		installed in a location other than where it is built.
  1139  // 		File names in stack traces are rewritten from GOROOT to
  1140  // 		GOROOT_FINAL.
  1141  // 	GO_EXTLINK_ENABLED
  1142  // 		Whether the linker should use external linking mode
  1143  // 		when using -linkmode=auto with code that uses cgo.
  1144  // 		Set to 0 to disable external linking mode, 1 to enable it.
  1145  // 	GIT_ALLOW_PROTOCOL
  1146  // 		Defined by Git. A colon-separated list of schemes that are allowed to be used
  1147  // 		with git fetch/clone. If set, any scheme not explicitly mentioned will be
  1148  // 		considered insecure by 'go get'.
  1149  //
  1150  //
  1151  // Import path syntax
  1152  //
  1153  // An import path (see 'go help packages') denotes a package stored in the local
  1154  // file system.  In general, an import path denotes either a standard package (such
  1155  // as "unicode/utf8") or a package found in one of the work spaces (For more
  1156  // details see: 'go help gopath').
  1157  //
  1158  // Relative import paths
  1159  //
  1160  // An import path beginning with ./ or ../ is called a relative path.
  1161  // The toolchain supports relative import paths as a shortcut in two ways.
  1162  //
  1163  // First, a relative path can be used as a shorthand on the command line.
  1164  // If you are working in the directory containing the code imported as
  1165  // "unicode" and want to run the tests for "unicode/utf8", you can type
  1166  // "go test ./utf8" instead of needing to specify the full path.
  1167  // Similarly, in the reverse situation, "go test .." will test "unicode" from
  1168  // the "unicode/utf8" directory. Relative patterns are also allowed, like
  1169  // "go test ./..." to test all subdirectories. See 'go help packages' for details
  1170  // on the pattern syntax.
  1171  //
  1172  // Second, if you are compiling a Go program not in a work space,
  1173  // you can use a relative path in an import statement in that program
  1174  // to refer to nearby code also not in a work space.
  1175  // This makes it easy to experiment with small multipackage programs
  1176  // outside of the usual work spaces, but such programs cannot be
  1177  // installed with "go install" (there is no work space in which to install them),
  1178  // so they are rebuilt from scratch each time they are built.
  1179  // To avoid ambiguity, Go programs cannot use relative import paths
  1180  // within a work space.
  1181  //
  1182  // Remote import paths
  1183  //
  1184  // Certain import paths also
  1185  // describe how to obtain the source code for the package using
  1186  // a revision control system.
  1187  //
  1188  // A few common code hosting sites have special syntax:
  1189  //
  1190  // 	Bitbucket (Git, Mercurial)
  1191  //
  1192  // 		import "bitbucket.org/user/project"
  1193  // 		import "bitbucket.org/user/project/sub/directory"
  1194  //
  1195  // 	GitHub (Git)
  1196  //
  1197  // 		import "github.com/user/project"
  1198  // 		import "github.com/user/project/sub/directory"
  1199  //
  1200  // 	Launchpad (Bazaar)
  1201  //
  1202  // 		import "launchpad.net/project"
  1203  // 		import "launchpad.net/project/series"
  1204  // 		import "launchpad.net/project/series/sub/directory"
  1205  //
  1206  // 		import "launchpad.net/~user/project/branch"
  1207  // 		import "launchpad.net/~user/project/branch/sub/directory"
  1208  //
  1209  // 	IBM DevOps Services (Git)
  1210  //
  1211  // 		import "hub.jazz.net/git/user/project"
  1212  // 		import "hub.jazz.net/git/user/project/sub/directory"
  1213  //
  1214  // For code hosted on other servers, import paths may either be qualified
  1215  // with the version control type, or the go tool can dynamically fetch
  1216  // the import path over https/http and discover where the code resides
  1217  // from a <meta> tag in the HTML.
  1218  //
  1219  // To declare the code location, an import path of the form
  1220  //
  1221  // 	repository.vcs/path
  1222  //
  1223  // specifies the given repository, with or without the .vcs suffix,
  1224  // using the named version control system, and then the path inside
  1225  // that repository.  The supported version control systems are:
  1226  //
  1227  // 	Bazaar      .bzr
  1228  // 	Git         .git
  1229  // 	Mercurial   .hg
  1230  // 	Subversion  .svn
  1231  //
  1232  // For example,
  1233  //
  1234  // 	import "example.org/user/foo.hg"
  1235  //
  1236  // denotes the root directory of the Mercurial repository at
  1237  // example.org/user/foo or foo.hg, and
  1238  //
  1239  // 	import "example.org/repo.git/foo/bar"
  1240  //
  1241  // denotes the foo/bar directory of the Git repository at
  1242  // example.org/repo or repo.git.
  1243  //
  1244  // When a version control system supports multiple protocols,
  1245  // each is tried in turn when downloading.  For example, a Git
  1246  // download tries https://, then git+ssh://.
  1247  //
  1248  // By default, downloads are restricted to known secure protocols
  1249  // (e.g. https, ssh). To override this setting for Git downloads, the
  1250  // GIT_ALLOW_PROTOCOL environment variable can be set (For more details see:
  1251  // 'go help environment').
  1252  //
  1253  // If the import path is not a known code hosting site and also lacks a
  1254  // version control qualifier, the go tool attempts to fetch the import
  1255  // over https/http and looks for a <meta> tag in the document's HTML
  1256  // <head>.
  1257  //
  1258  // The meta tag has the form:
  1259  //
  1260  // 	<meta name="go-import" content="import-prefix vcs repo-root">
  1261  //
  1262  // The import-prefix is the import path corresponding to the repository
  1263  // root. It must be a prefix or an exact match of the package being
  1264  // fetched with "go get". If it's not an exact match, another http
  1265  // request is made at the prefix to verify the <meta> tags match.
  1266  //
  1267  // The meta tag should appear as early in the file as possible.
  1268  // In particular, it should appear before any raw JavaScript or CSS,
  1269  // to avoid confusing the go command's restricted parser.
  1270  //
  1271  // The vcs is one of "git", "hg", "svn", etc,
  1272  //
  1273  // The repo-root is the root of the version control system
  1274  // containing a scheme and not containing a .vcs qualifier.
  1275  //
  1276  // For example,
  1277  //
  1278  // 	import "example.org/pkg/foo"
  1279  //
  1280  // will result in the following requests:
  1281  //
  1282  // 	https://example.org/pkg/foo?go-get=1 (preferred)
  1283  // 	http://example.org/pkg/foo?go-get=1  (fallback, only with -insecure)
  1284  //
  1285  // If that page contains the meta tag
  1286  //
  1287  // 	<meta name="go-import" content="example.org git https://code.org/r/p/exproj">
  1288  //
  1289  // the go tool will verify that https://example.org/?go-get=1 contains the
  1290  // same meta tag and then git clone https://code.org/r/p/exproj into
  1291  // GOPATH/src/example.org.
  1292  //
  1293  // New downloaded packages are written to the first directory listed in the GOPATH
  1294  // environment variable (For more details see: 'go help gopath').
  1295  //
  1296  // The go command attempts to download the version of the
  1297  // package appropriate for the Go release being used.
  1298  // Run 'go help get' for more.
  1299  //
  1300  // Import path checking
  1301  //
  1302  // When the custom import path feature described above redirects to a
  1303  // known code hosting site, each of the resulting packages has two possible
  1304  // import paths, using the custom domain or the known hosting site.
  1305  //
  1306  // A package statement is said to have an "import comment" if it is immediately
  1307  // followed (before the next newline) by a comment of one of these two forms:
  1308  //
  1309  // 	package math // import "path"
  1310  // 	package math /* import "path" */
  1311  //
  1312  // The go command will refuse to install a package with an import comment
  1313  // unless it is being referred to by that import path. In this way, import comments
  1314  // let package authors make sure the custom import path is used and not a
  1315  // direct path to the underlying code hosting site.
  1316  //
  1317  // Import path checking is disabled for code found within vendor trees.
  1318  // This makes it possible to copy code into alternate locations in vendor trees
  1319  // without needing to update import comments.
  1320  //
  1321  // See https://golang.org/s/go14customimport for details.
  1322  //
  1323  //
  1324  // Description of package lists
  1325  //
  1326  // Many commands apply to a set of packages:
  1327  //
  1328  // 	go action [packages]
  1329  //
  1330  // Usually, [packages] is a list of import paths.
  1331  //
  1332  // An import path that is a rooted path or that begins with
  1333  // a . or .. element is interpreted as a file system path and
  1334  // denotes the package in that directory.
  1335  //
  1336  // Otherwise, the import path P denotes the package found in
  1337  // the directory DIR/src/P for some DIR listed in the GOPATH
  1338  // environment variable (For more details see: 'go help gopath').
  1339  //
  1340  // If no import paths are given, the action applies to the
  1341  // package in the current directory.
  1342  //
  1343  // There are four reserved names for paths that should not be used
  1344  // for packages to be built with the go tool:
  1345  //
  1346  // - "main" denotes the top-level package in a stand-alone executable.
  1347  //
  1348  // - "all" expands to all package directories found in all the GOPATH
  1349  // trees. For example, 'go list all' lists all the packages on the local
  1350  // system.
  1351  //
  1352  // - "std" is like all but expands to just the packages in the standard
  1353  // Go library.
  1354  //
  1355  // - "cmd" expands to the Go repository's commands and their
  1356  // internal libraries.
  1357  //
  1358  // Import paths beginning with "cmd/" only match source code in
  1359  // the Go repository.
  1360  //
  1361  // An import path is a pattern if it includes one or more "..." wildcards,
  1362  // each of which can match any string, including the empty string and
  1363  // strings containing slashes.  Such a pattern expands to all package
  1364  // directories found in the GOPATH trees with names matching the
  1365  // patterns.
  1366  //
  1367  // To make common patterns more convenient, there are two special cases.
  1368  // First, /... at the end of the pattern can match an empty string,
  1369  // so that net/... matches both net and packages in its subdirectories, like net/http.
  1370  // Second, any slash-separated pattern element containing a wildcard never
  1371  // participates in a match of the "vendor" element in the path of a vendored
  1372  // package, so that ./... does not match packages in subdirectories of
  1373  // ./vendor or ./mycode/vendor, but ./vendor/... and ./mycode/vendor/... do.
  1374  // Note, however, that a directory named vendor that itself contains code
  1375  // is not a vendored package: cmd/vendor would be a command named vendor,
  1376  // and the pattern cmd/... matches it.
  1377  // See golang.org/s/go15vendor for more about vendoring.
  1378  //
  1379  // An import path can also name a package to be downloaded from
  1380  // a remote repository.  Run 'go help importpath' for details.
  1381  //
  1382  // Every package in a program must have a unique import path.
  1383  // By convention, this is arranged by starting each path with a
  1384  // unique prefix that belongs to you.  For example, paths used
  1385  // internally at Google all begin with 'google', and paths
  1386  // denoting remote repositories begin with the path to the code,
  1387  // such as 'github.com/user/repo'.
  1388  //
  1389  // Packages in a program need not have unique package names,
  1390  // but there are two reserved package names with special meaning.
  1391  // The name main indicates a command, not a library.
  1392  // Commands are built into binaries and cannot be imported.
  1393  // The name documentation indicates documentation for
  1394  // a non-Go program in the directory. Files in package documentation
  1395  // are ignored by the go command.
  1396  //
  1397  // As a special case, if the package list is a list of .go files from a
  1398  // single directory, the command is applied to a single synthesized
  1399  // package made up of exactly those files, ignoring any build constraints
  1400  // in those files and ignoring any other files in the directory.
  1401  //
  1402  // Directory and file names that begin with "." or "_" are ignored
  1403  // by the go tool, as are directories named "testdata".
  1404  //
  1405  //
  1406  // Description of testing flags
  1407  //
  1408  // The 'go test' command takes both flags that apply to 'go test' itself
  1409  // and flags that apply to the resulting test binary.
  1410  //
  1411  // Several of the flags control profiling and write an execution profile
  1412  // suitable for "go tool pprof"; run "go tool pprof -h" for more
  1413  // information.  The --alloc_space, --alloc_objects, and --show_bytes
  1414  // options of pprof control how the information is presented.
  1415  //
  1416  // The following flags are recognized by the 'go test' command and
  1417  // control the execution of any test:
  1418  //
  1419  // 	-bench regexp
  1420  // 	    Run (sub)benchmarks matching a regular expression.
  1421  // 	    The given regular expression is split into smaller ones by
  1422  // 	    top-level '/', where each must match the corresponding part of a
  1423  // 	    benchmark's identifier.
  1424  // 	    By default, no benchmarks run. To run all benchmarks,
  1425  // 	    use '-bench .' or '-bench=.'.
  1426  //
  1427  // 	-benchtime t
  1428  // 	    Run enough iterations of each benchmark to take t, specified
  1429  // 	    as a time.Duration (for example, -benchtime 1h30s).
  1430  // 	    The default is 1 second (1s).
  1431  //
  1432  // 	-count n
  1433  // 	    Run each test and benchmark n times (default 1).
  1434  // 	    If -cpu is set, run n times for each GOMAXPROCS value.
  1435  // 	    Examples are always run once.
  1436  //
  1437  // 	-cover
  1438  // 	    Enable coverage analysis.
  1439  //
  1440  // 	-covermode set,count,atomic
  1441  // 	    Set the mode for coverage analysis for the package[s]
  1442  // 	    being tested. The default is "set" unless -race is enabled,
  1443  // 	    in which case it is "atomic".
  1444  // 	    The values:
  1445  // 		set: bool: does this statement run?
  1446  // 		count: int: how many times does this statement run?
  1447  // 		atomic: int: count, but correct in multithreaded tests;
  1448  // 			significantly more expensive.
  1449  // 	    Sets -cover.
  1450  //
  1451  // 	-coverpkg pkg1,pkg2,pkg3
  1452  // 	    Apply coverage analysis in each test to the given list of packages.
  1453  // 	    The default is for each test to analyze only the package being tested.
  1454  // 	    Packages are specified as import paths.
  1455  // 	    Sets -cover.
  1456  //
  1457  // 	-cpu 1,2,4
  1458  // 	    Specify a list of GOMAXPROCS values for which the tests or
  1459  // 	    benchmarks should be executed.  The default is the current value
  1460  // 	    of GOMAXPROCS.
  1461  //
  1462  // 	-parallel n
  1463  // 	    Allow parallel execution of test functions that call t.Parallel.
  1464  // 	    The value of this flag is the maximum number of tests to run
  1465  // 	    simultaneously; by default, it is set to the value of GOMAXPROCS.
  1466  // 	    Note that -parallel only applies within a single test binary.
  1467  // 	    The 'go test' command may run tests for different packages
  1468  // 	    in parallel as well, according to the setting of the -p flag
  1469  // 	    (see 'go help build').
  1470  //
  1471  // 	-run regexp
  1472  // 	    Run only those tests and examples matching the regular expression.
  1473  // 	    For tests the regular expression is split into smaller ones by
  1474  // 	    top-level '/', where each must match the corresponding part of a
  1475  // 	    test's identifier.
  1476  //
  1477  // 	-short
  1478  // 	    Tell long-running tests to shorten their run time.
  1479  // 	    It is off by default but set during all.bash so that installing
  1480  // 	    the Go tree can run a sanity check but not spend time running
  1481  // 	    exhaustive tests.
  1482  //
  1483  // 	-timeout t
  1484  // 	    If a test runs longer than t, panic.
  1485  // 	    The default is 10 minutes (10m).
  1486  //
  1487  // 	-v
  1488  // 	    Verbose output: log all tests as they are run. Also print all
  1489  // 	    text from Log and Logf calls even if the test succeeds.
  1490  //
  1491  // The following flags are also recognized by 'go test' and can be used to
  1492  // profile the tests during execution:
  1493  //
  1494  // 	-benchmem
  1495  // 	    Print memory allocation statistics for benchmarks.
  1496  //
  1497  // 	-blockprofile block.out
  1498  // 	    Write a goroutine blocking profile to the specified file
  1499  // 	    when all tests are complete.
  1500  // 	    Writes test binary as -c would.
  1501  //
  1502  // 	-blockprofilerate n
  1503  // 	    Control the detail provided in goroutine blocking profiles by
  1504  // 	    calling runtime.SetBlockProfileRate with n.
  1505  // 	    See 'go doc runtime.SetBlockProfileRate'.
  1506  // 	    The profiler aims to sample, on average, one blocking event every
  1507  // 	    n nanoseconds the program spends blocked.  By default,
  1508  // 	    if -test.blockprofile is set without this flag, all blocking events
  1509  // 	    are recorded, equivalent to -test.blockprofilerate=1.
  1510  //
  1511  // 	-coverprofile cover.out
  1512  // 	    Write a coverage profile to the file after all tests have passed.
  1513  // 	    Sets -cover.
  1514  //
  1515  // 	-cpuprofile cpu.out
  1516  // 	    Write a CPU profile to the specified file before exiting.
  1517  // 	    Writes test binary as -c would.
  1518  //
  1519  // 	-memprofile mem.out
  1520  // 	    Write a memory profile to the file after all tests have passed.
  1521  // 	    Writes test binary as -c would.
  1522  //
  1523  // 	-memprofilerate n
  1524  // 	    Enable more precise (and expensive) memory profiles by setting
  1525  // 	    runtime.MemProfileRate.  See 'go doc runtime.MemProfileRate'.
  1526  // 	    To profile all memory allocations, use -test.memprofilerate=1
  1527  // 	    and pass --alloc_space flag to the pprof tool.
  1528  //
  1529  // 	-mutexprofile mutex.out
  1530  // 	    Write a mutex contention profile to the specified file
  1531  // 	    when all tests are complete.
  1532  // 	    Writes test binary as -c would.
  1533  //
  1534  // 	-mutexprofilefraction n
  1535  // 	    Sample 1 in n stack traces of goroutines holding a
  1536  // 	    contended mutex.
  1537  //
  1538  // 	-outputdir directory
  1539  // 	    Place output files from profiling in the specified directory,
  1540  // 	    by default the directory in which "go test" is running.
  1541  //
  1542  // 	-trace trace.out
  1543  // 	    Write an execution trace to the specified file before exiting.
  1544  //
  1545  // Each of these flags is also recognized with an optional 'test.' prefix,
  1546  // as in -test.v. When invoking the generated test binary (the result of
  1547  // 'go test -c') directly, however, the prefix is mandatory.
  1548  //
  1549  // The 'go test' command rewrites or removes recognized flags,
  1550  // as appropriate, both before and after the optional package list,
  1551  // before invoking the test binary.
  1552  //
  1553  // For instance, the command
  1554  //
  1555  // 	go test -v -myflag testdata -cpuprofile=prof.out -x
  1556  //
  1557  // will compile the test binary and then run it as
  1558  //
  1559  // 	pkg.test -test.v -myflag testdata -test.cpuprofile=prof.out
  1560  //
  1561  // (The -x flag is removed because it applies only to the go command's
  1562  // execution, not to the test itself.)
  1563  //
  1564  // The test flags that generate profiles (other than for coverage) also
  1565  // leave the test binary in pkg.test for use when analyzing the profiles.
  1566  //
  1567  // When 'go test' runs a test binary, it does so from within the
  1568  // corresponding package's source code directory. Depending on the test,
  1569  // it may be necessary to do the same when invoking a generated test
  1570  // binary directly.
  1571  //
  1572  // The command-line package list, if present, must appear before any
  1573  // flag not known to the go test command. Continuing the example above,
  1574  // the package list would have to appear before -myflag, but could appear
  1575  // on either side of -v.
  1576  //
  1577  // To keep an argument for a test binary from being interpreted as a
  1578  // known flag or a package name, use -args (see 'go help test') which
  1579  // passes the remainder of the command line through to the test binary
  1580  // uninterpreted and unaltered.
  1581  //
  1582  // For instance, the command
  1583  //
  1584  // 	go test -v -args -x -v
  1585  //
  1586  // will compile the test binary and then run it as
  1587  //
  1588  // 	pkg.test -test.v -x -v
  1589  //
  1590  // Similarly,
  1591  //
  1592  // 	go test -args math
  1593  //
  1594  // will compile the test binary and then run it as
  1595  //
  1596  // 	pkg.test math
  1597  //
  1598  // In the first example, the -x and the second -v are passed through to the
  1599  // test binary unchanged and with no effect on the go command itself.
  1600  // In the second example, the argument math is passed through to the test
  1601  // binary, instead of being interpreted as the package list.
  1602  //
  1603  //
  1604  // Description of testing functions
  1605  //
  1606  // The 'go test' command expects to find test, benchmark, and example functions
  1607  // in the "*_test.go" files corresponding to the package under test.
  1608  //
  1609  // A test function is one named TestXXX (where XXX is any alphanumeric string
  1610  // not starting with a lower case letter) and should have the signature,
  1611  //
  1612  // 	func TestXXX(t *testing.T) { ... }
  1613  //
  1614  // A benchmark function is one named BenchmarkXXX and should have the signature,
  1615  //
  1616  // 	func BenchmarkXXX(b *testing.B) { ... }
  1617  //
  1618  // An example function is similar to a test function but, instead of using
  1619  // *testing.T to report success or failure, prints output to os.Stdout.
  1620  // If the last comment in the function starts with "Output:" then the output
  1621  // is compared exactly against the comment (see examples below). If the last
  1622  // comment begins with "Unordered output:" then the output is compared to the
  1623  // comment, however the order of the lines is ignored. An example with no such
  1624  // comment is compiled but not executed. An example with no text after
  1625  // "Output:" is compiled, executed, and expected to produce no output.
  1626  //
  1627  // Godoc displays the body of ExampleXXX to demonstrate the use
  1628  // of the function, constant, or variable XXX.  An example of a method M with
  1629  // receiver type T or *T is named ExampleT_M.  There may be multiple examples
  1630  // for a given function, constant, or variable, distinguished by a trailing _xxx,
  1631  // where xxx is a suffix not beginning with an upper case letter.
  1632  //
  1633  // Here is an example of an example:
  1634  //
  1635  // 	func ExamplePrintln() {
  1636  // 		Println("The output of\nthis example.")
  1637  // 		// Output: The output of
  1638  // 		// this example.
  1639  // 	}
  1640  //
  1641  // Here is another example where the ordering of the output is ignored:
  1642  //
  1643  // 	func ExamplePerm() {
  1644  // 		for _, value := range Perm(4) {
  1645  // 			fmt.Println(value)
  1646  // 		}
  1647  //
  1648  // 		// Unordered output: 4
  1649  // 		// 2
  1650  // 		// 1
  1651  // 		// 3
  1652  // 		// 0
  1653  // 	}
  1654  //
  1655  // The entire test file is presented as the example when it contains a single
  1656  // example function, at least one other function, type, variable, or constant
  1657  // declaration, and no test or benchmark functions.
  1658  //
  1659  // See the documentation of the testing package for more information.
  1660  //
  1661  //
  1662  package main