Updated vendored dependencies

http_upload
Martin Dosch 5 years ago
parent 9fabb0ff0e
commit 829b28fa9e

@ -487,6 +487,8 @@ func (c *Client) startTLSIfRequired(f *streamFeatures, o *Options, domain string
case f.StartTLS == nil:
// the server does not support STARTTLS
return f, nil
case !o.StartTLS && f.StartTLS.Required == nil:
return f, nil
case f.StartTLS.Required != nil:
// the server requires STARTTLS.
case !o.StartTLS:

@ -25,14 +25,14 @@ Typical usage:
```
Declare flags and have getopt return pointers to the values.
helpFlag := getopt.Bool('?', "display help")
cmdFlag := getopt.StringLong("command", 'c', "default", "the command)
cmdFlag := getopt.StringLong("command", 'c', "default", "the command")
Declare flags against existing variables.
var {
var (
fileName = "/the/default/path"
timeout = time.Second * 5
verbose bool
}
)
func init() {
getopt.Flag(&verbose, 'v', "be verbose")
getopt.FlagLong(&fileName, "path", 0, "the path")
@ -165,7 +165,7 @@ flags or values. As an example:
}
```
If called with set to { "prog", "-a", "cmd", "-b", "arg" } then both and and
If called with set to { "prog", "-a", "cmd", "-b", "arg" } then both a and
b would be set, cmd would be set to "cmd", and opts.Args() would return {
"arg" }.

@ -21,7 +21,7 @@
//
// // Declare the flags to be used
// helpFlag := getopt.Bool('?', "display help")
// cmdFlag := getopt.StringLong("command", 'c', "", "the command)
// cmdFlag := getopt.StringLong("command", 'c', "", "the command")
//
// func main() {
// // Parse the program arguments

@ -21,7 +21,7 @@
//
// // Declare flags and have getopt return pointers to the values.
// helpFlag := getopt.Bool('?', "display help")
// cmdFlag := getopt.StringLong("command", 'c', "default", "the command)
// cmdFlag := getopt.StringLong("command", 'c', "default", "the command")
//
// // Declare flags against existing variables.
// var {

Loading…
Cancel
Save