diff --git a/example_test.go b/example_test.go index 8e27067..f2058c6 100644 --- a/example_test.go +++ b/example_test.go @@ -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 + // +}