mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-08-05 13:43:40 -07:00
add Default example
This commit is contained in:
@@ -38,3 +38,11 @@ Host *.example.com
|
||||
fmt.Println(val)
|
||||
// Output: yes
|
||||
}
|
||||
|
||||
func ExampleDefault() {
|
||||
fmt.Println(ssh_config.Default("Port"))
|
||||
fmt.Println(ssh_config.Default("UnknownVar"))
|
||||
// Output:
|
||||
// 22
|
||||
//
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user