Skip to content

Commit 2302b24

Browse files
2
1 parent 244e23f commit 2302b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/embed/embed.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
// depending on whether the package wants to make the data available to other packages.
9191
// It can only be used with variables at package scope, not with local variables.
9292
//
93-
// Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links.
93+
// Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links
94+
// or a directory contains the go.mod file.
9495
// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :.
9596
// Matches for empty directories are ignored. After that, each pattern in a //go:embed line
9697
// must match at least one file or non-empty directory.

0 commit comments

Comments
 (0)