MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Default

Function Default

cli/pkg/ssh_config/validators.go:19–21  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

17//
18// Default values are provided by OpenSSH_7.4p1 on a Mac.
19func 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.
24var yesnos = map[string]bool{

Callers 3

TestDefaultFunction · 0.85
GetStrictMethod · 0.85
GetAllStrictMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestDefaultFunction · 0.68