Document that go:embed exists and is usually a better solution#150
Document that go:embed exists and is usually a better solution#150rsheasby wants to merge 1 commit intomarkbates:masterfrom
Conversation
|
I just tried go:embed on two files I included via pkger before. With |
|
20 kb or 0.07% smaller isn't really a good reason to keep using pkger. |
|
True, it isn't much. So far I didn't see a reason to use that, if it makes the file slightly larger. |
|
I may be mistaken, don't quote me on that. But I seem to remember he said something about it on Go Time. Regardless, that shouldn't be the primary reason for switching. The primary reason for switching is because go:embed is actively maintained and reduces dependencies. pkger is no longer maintained, and if you have one less thing to download and one less potential supply chain attack, it's a no brainer. Plus no more go generate pre-build step required. |
No description provided.