We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5757289 commit 7513f50Copy full SHA for 7513f50
dsl/dsl.go
@@ -16,6 +16,10 @@ type Matcher map[string]Var
16
// `a/b/foo.Bar` type during the pattern execution.
17
func (m Matcher) Import(pkgPath string) {}
18
19
+// ImportAs is like Import, but can handle "/v2" packages
20
+// and package name conflicts (e.g. "x/path" vs "y/path").
21
+func (m Matcher) ImportAs(pkgPath, localName string) {}
22
+
23
// Match specifies a set of patterns that match a rule being defined.
24
// Pattern matching succeeds if at least 1 pattern matches.
25
//
0 commit comments