Skip to content

Support Go 1.16 embed package #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nevkontakte opened this issue Mar 16, 2021 · 0 comments · Fixed by #1153
Closed

Support Go 1.16 embed package #997

nevkontakte opened this issue Mar 16, 2021 · 0 comments · Fixed by #1153

Comments

@nevkontakte
Copy link
Member

This is a new feature in 1.16 that allows embedding arbitrary files into Go binaries: https://pkg.go.dev/embed.

This can be very useful in GopherJS context for use cases such as embedding templates for use at the backend and frontend simultaneously.

While there are pre-existing community-offered tools that solve this problem, all of them require use of go generate or a similar tool and are much less convenient to use.

nevkontakte added a commit to nevkontakte/gopherjs that referenced this issue Mar 18, 2021
GopherJS currently doesn't support file embedding (see issue gopherjs#997).
@nevkontakte nevkontakte added this to the Go 1.16 support milestone Mar 22, 2021
@nevkontakte nevkontakte pinned this issue Apr 13, 2021
@nevkontakte nevkontakte unpinned this issue Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant