bbgo
bbgo copied to clipboard
use go 1.16 embed feature for front-end files
I am almost done. But 1.16 embed not able work with next.js export because a lot of files naming is _ ....
If a pattern names a directory, all files in the subtree rooted at that directory are embedded (recursively), except that files with names beginning with ‘.’ or ‘_’ are excluded. So the variable in the above example is almost equivalent to:
My branch on https://github.com/SDpower/bbgo/tree/issue207. so it no way to continue.
@SDpower Thank you for all the works! I think it's still helpful, at least we know it's not working. However, I would like to ask if you can keep your branch? so that maybe some day, the Golang team could solve this issue.
Can you still send the Pull request and mark it as a WIP (Working in progress) or Draft Pull request? so that we can revisit it someday.
@c9s @SDpower
you can come back to this problem as this is solved with all: pattern //go:embed all:pattern
ref link: https://github.com/golang/go/commit/36dbf7f7e63f3738795bb04593c3c011e987d1f3