()
| 19 | } |
| 20 | |
| 21 | func ExamplePattern() { |
| 22 | pat, _ := ssh_config.NewPattern("*") |
| 23 | host := &ssh_config.Host{Patterns: []*ssh_config.Pattern{pat}} |
| 24 | fmt.Println(host.Matches("test.stage.example.com")) |
| 25 | fmt.Println(host.Matches("othersubdomain.any.any")) |
| 26 | // Output: |
| 27 | // true |
| 28 | // true |
| 29 | } |
| 30 | |
| 31 | func ExampleDecode() { |
| 32 | var config = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…