- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for validEmbedPattern (0.18 sec)
-
src/cmd/go/internal/load/pkg.go
all := strings.HasPrefix(pattern, "all:") if all { glob = pattern[len("all:"):] } // Check pattern is valid for //go:embed. if _, err := pathpkg.Match(glob, ""); err != nil || !validEmbedPattern(glob) { return nil, nil, fmt.Errorf("invalid pattern syntax") } // Glob to find matches. match, err := fsys.Glob(str.QuoteGlob(str.WithFilePathSeparator(pkgdir)) + filepath.FromSlash(glob))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)