Default returns the default value for the given keyword, for example "22" if the keyword is "Port". Default returns the empty string if the keyword has no default, or if the keyword is unknown. Keyword matching is case-insensitive. Default values are provided by OpenSSH_7.4p1 on a Mac.
(keyword string)
| 17 | // |
| 18 | // Default values are provided by OpenSSH_7.4p1 on a Mac. |
| 19 | func Default(keyword string) string { |
| 20 | return defaults[strings.ToLower(keyword)] |
| 21 | } |
| 22 | |
| 23 | // Arguments where the value must be "yes" or "no" and *only* yes or no. |
| 24 | var yesnos = map[string]bool{ |
no outgoing calls