diff options
author | tulip <mrliuxiansen8023@gmail.com> | 2022-06-22 00:42:29 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-06-23 16:32:40 +0000 |
commit | 15605ca827723d568f780402d03b29842fd20eec (patch) | |
tree | 5786919dd078d66cbd34fdf6543be7ef69ec39bf /src/embed | |
parent | 2e773a3894fba7af744090d7d42968f4993018e2 (diff) | |
download | go-15605ca827723d568f780402d03b29842fd20eec.tar.gz go-15605ca827723d568f780402d03b29842fd20eec.zip |
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 <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/embed')
-rw-r--r-- | src/embed/embed.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/embed/embed.go b/src/embed/embed.go index cbe2d398fb..c54b961d15 100644 --- a/src/embed/embed.go +++ b/src/embed/embed.go @@ -91,6 +91,7 @@ // It can only be used with variables at package scope, not with local variables. // // Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links. +// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :. // Matches for empty directories are ignored. After that, each pattern in a //go:embed line // must match at least one file or non-empty directory. // |