import (
_ "embed"
...
)
On Sun, Oct 10, 2021 at 6:21 PM Sean Liao wrote:
> import _ "embed"
>
> It means to import it for side effects only
>
> On Sunday, October 10, 2021 at 6:12:07 PM UTC+2 sunto...@gmail.com wrote:
>
>> Hi,
>>
>> I'm having problem using embed with Go 1.16. I'm getting et
On Sunday, October 10, 2021 at 12:23:27 PM UTC-4 Tong Sun wrote:
> Ahh, found it but you beat me to it.
>
> Apparently the sample code that I'm referring to,
> https://github.com/treeverse/blogs/blob/master/mypostcard/main.go
> from https://lakefs.io/working-with-embed-in-go/
> is outdated.
>
Ahh, found it but you beat me to it.
Apparently the sample code that I'm referring to,
https://github.com/treeverse/blogs/blob/master/mypostcard/main.go
from https://lakefs.io/working-with-embed-in-go/
is outdated.
Thanks!
On Sunday, October 10, 2021 at 12:20:42 PM UTC-4 seank...@gmail.com wrot
import _ "embed"
It means to import it for side effects only
On Sunday, October 10, 2021 at 6:12:07 PM UTC+2 sunto...@gmail.com wrote:
> Hi,
>
> I'm having problem using embed with Go 1.16. I'm getting ether
>
> - //go:embed only allowed in Go files that import "embed"
> - or imported and not us