Documentation
¶
Overview ¶
Package net is network utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WithMaxRedirs = funcopt.New(func(params *fetchParams, maxredirs int) {
params.maxredirs = maxredirs
})
WithMaxRedirs sets the maximum number of redirections to follow. Zero does not follow redirections. Negative number uses the default of the underlying library.
View Source
var WithOutput = funcopt.New(func(params *fetchParams, output string) {
params.output = output
})
WithOutput writes output to the specified file instead of stdout.
View Source
var WithStderr = funcopt.New(func(params *fetchParams, stderr io.Writer) {
params.stderr = stderr
})
WithStderr sets the stderr stream for the fetch operation.
View Source
var WithVerbose = funcopt.New(func(params *fetchParams, verbose bool) {
params.verbose = verbose
})
WithVerbose sets the verbosity.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.