#Inject go:embed filename at build time
3 messages · Page 1 of 1 (latest)
^ Yeah you use embed.FS and then add directives for which files/directories you want compiled into your binary
https://gobyexample.com/embed-directive
I don't know if you saw this
#go-chat message
And I just tested, go run command not work for cross compile. so you probably need a bash file work with //go:generate