go/src/embed/internal/embedtest
Jay Conrod ca5774a5a5 embed: treat uninitialized FS as empty
As described in the FS documentation.

This prevents http.FS and other clients from panicking when the
go:embed directive is missing.

For #43682
Related #43698

Change-Id: Iecf26d229a099e55d24670c3119cd6c6d17ecc6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/283852
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2021-01-19 16:31:09 +00:00
..
testdata cmd/go, embed: exclude .* and _* from embedded directory trees 2020-12-04 13:50:44 +00:00
concurrency.txt cmd/go: add //go:embed support 2020-10-29 16:26:43 +00:00
embed_test.go embed: treat uninitialized FS as empty 2021-01-19 16:31:09 +00:00
embedx_test.go cmd/compile: disallow embed of var inside func 2021-01-15 20:37:17 +00:00