Skip to content

Commit 15605ca

Browse files
catundercargopherbot
authored andcommitted
embed: document additional file name restrictions
For #44486 Change-Id: I66af9f7a9f95489a41fd6710e50bdd7878f78b85 Reviewed-on: https://go-review.googlesource.com/c/go/+/413494 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 2e773a3 commit 15605ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/embed/embed.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
// It can only be used with variables at package scope, not with local variables.
9292
//
9393
// Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links.
94+
// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :.
9495
// Matches for empty directories are ignored. After that, each pattern in a //go:embed line
9596
// must match at least one file or non-empty directory.
9697
//

0 commit comments

Comments
 (0)