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

Struct Pattern

cli/pkg/ssh_config/config.go:433–437  ·  view source on GitHub ↗

Pattern is a pattern in a Host declaration. Patterns are read-only values; create a new one with NewPattern().

Source from the content-addressed store, hash-verified

431// Pattern is a pattern in a Host declaration. Patterns are read-only values;
432// create a new one with NewPattern().
433type Pattern struct {
434 str string // Its appearance in the file, not the value that gets compiled.
435 regex *regexp.Regexp
436 not bool // True if this is a negated match
437}
438
439// String prints the string representation of the pattern.
440func (p Pattern) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected