support embedding via embed.FS
We already added support for "//go:embed" with string and []byte, by not obfuscating the "embed" import path. However, embed.FS was still failing: > garble build [stderr] # test/main :13: go:embed cannot apply to var of type embed.WtKNvwbN The compiler detects the type by matching its name to exactly "embed.FS", so don't obfuscate the name "FS" either. While at it, ensure that the embed code behaves the same with "go build". Updates #349.pull/351/head
parent
680e5624e9
commit
e2ddce75a7
Loading…
Reference in New Issue