Documentation
¶
Overview ¶
Package get implements the “go get” command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdGet = &base.Command{
UsageLine: "get [-d] [-f] [-fix] [-insecure] [-t] [-u] [build flags] [packages]",
Short: "download and install packages and dependencies",
Long: `
Get downloads the packages named by the import paths, along with their
dependencies. It then installs the named packages, like 'go install'.
The -d flag instructs get to stop after downloading the packages; that is,
it instructs get not to install the packages.
The -f flag, valid only when -u is set, forces get -u not to verify that
each package has been checked out from the source control repository
implied by its import path. This can be useful if the source is a local fork
of the original.
The -fix flag instructs get to run the fix tool on the downloaded packages
before resolving dependencies or building the code.
The -insecure flag permits fetching from repositories and resolving
custom domains using insecure schemes such as HTTP. Use with caution.
The -t flag instructs get to also download the packages required to build
the tests for the specified packages.
The -u flag instructs get to use the network to update the named packages
and their dependencies. By default, get uses the network to check out
missing packages but does not use it to look for updates to existing packages.
The -v flag enables verbose progress and debug output.
Get also accepts build flags to control the installation. See 'go help build'.
When checking out a new package, get creates the target directory
GOPATH/src/<import-path>. If the GOPATH contains multiple entries,
get uses the first one. For more details see: 'go help gopath'.
When checking out or updating a package, get looks for a branch or tag
that matches the locally installed version of Go. The most important
rule is that if the local installation is running version "go1", get
searches for a branch or tag named "go1". If no such version exists it
retrieves the most recent version of the package.
When go get checks out or updates a Git repository,
it also updates any git submodules referenced by the repository.
Get never checks out or updates code stored in vendor directories.
For more about specifying packages, see 'go help packages'.
For more about how 'go get' finds source code to
download, see 'go help importpath'.
See also: go build, go install, go clean.
`,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
003_parse_execute
|
|
01_stdout
command
|
|
02_parsefiles
command
|
|
03_parseglob
command
|
|
006_datastructures
|
|
01_slice/01
command
|
|
01_slice/02_variable
command
|
|
02_map
command
|
|
03_struct/01
command
|
|
04_slice-struct
command
|
|
05_struct-slice-struct
command
|
|
007_funcs
|
|
01
command
|
|
02_date_formating
command
|
|
03_pipelines
command
|
|
008_pre_global_funcs
|
|
01_index
command
|
|
02_comparison
command
|
|
009_nested_templates
|
|
01_templates_nested
command
|
|
02_data_to_template
command
|
|
03_define_template
command
|
|
04_preview
command
|
|
010_composition
|
|
01
command
|
|
02
command
|
|
03
command
|
|
04_methods
command
|
|
011_xss
|
|
01_no_escaping
command
|
|
02_escaping
command
|
|
012_building_tcp_server_for_http
|
|
01_write
command
|
|
02_read
command
|
|
03_read_write
command
|
|
04_readwrite_deadline
command
|
|
05_dail
command
|
|
013_understanding_http_package
|
|
01_handler
command
|
|
02_request/01_parse_form
command
|
|
02_request/02_method
command
|
|
03_responsewriter
command
|
|
014_understanding_servemux
|
|
01_routing
command
|
|
02_new_servemux
command
|
|
03_default_servemux
command
|
|
04_handlefunc
command
|
|
05_handson
command
|
|
016_serving_files
|
|
01
command
|
|
02_serving/01_io_copy
command
|
|
02_serving/02_servefile
command
|
|
02_serving/03_fileserver/01
command
|
|
02_serving/03_fileserver/02
command
|
|
019_passing_data
|
|
01_url
command
|
|
02_formget
command
|
|
03_formpost
command
|
|
04_form
command
|
|
05_form_file/01_read
command
|
|
05_form_file/02_store
command
|
|
020_redirects
|
|
01_303_seeother
command
|
|
02_301_moved
command
|
|
04_writeheader
command
|
|
021_cookies
|
|
01
command
|
|
02_many_cookies
command
|
|
03_tracking
command
|
|
04_deleting
command
|
|
022_sessions
|
|
01_session
command
|
|
02_signup
command
|
|
03_encrypt
command
|
|
04_login
command
|
|
05_logout
command
|
|
next
command
|
Click to show internal directories.
Click to hide internal directories.