]> Cypherpunks.ru repositories - gostls13.git/commit
embed: treat uninitialized FS as empty
authorJay Conrod <jayconrod@google.com>
Thu, 14 Jan 2021 18:04:17 +0000 (13:04 -0500)
committerJay Conrod <jayconrod@google.com>
Tue, 19 Jan 2021 16:31:09 +0000 (16:31 +0000)
commitca5774a5a533ce26ed64010fcc98f258e5bb0cc1
treefa9cfa43a421d801a7424504bdd83b2a8c9cf8fb
parentd047c91a6c0f22af00d1c1e770a9d85201392656
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>
src/embed/embed.go
src/embed/internal/embedtest/embed_test.go