On Fri, Dec 18, 2020 at 4:50 AM Amit Saha <[email protected]> wrote: > > On Fri, 18 Dec 2020, 11:44 pm Volker Dobler, <[email protected]> > wrote: >> >> Use >> >> import _ "embed" // note the _ >> >> Your code does not use package embed. A comment does >> not qualify as usage. As yous must import it for //go:embed >> comments to work you have to use a "side-effects-only"-import. > > > Ah yes. This should be mentioned in the package documentation. Probably it is > not.
This is fairly likely to change before the final release. See https://golang.org/issue/43217. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcV0g-%3DW5tXQmJ6WWELNF5%3DUmn8ni-Wa7PPB1wo5x5aQHQ%40mail.gmail.com.
