git.templeos.me/xultist/go-enry/v2@v2.0.0-20230215093429-6ef3e87f47c0/internal/code-generator/assets/vendor.go.tmpl (about) 1 package data 2 3 import "github.com/go-enry/go-enry/v2/regex" 4 5 var VendorMatchers = []regex.EnryRegexp{ 6 {{range $regexp := . -}} 7 regex.MustCompile(`{{ $regexp }}`), 8 {{end -}} 9 } 10 11 // FastVendorMatcher is equivalent to matching any of the VendorMatchers. 12 var FastVendorMatcher = regex.MustCompile(`{{ optimize . }}`)