bbgo icon indicating copy to clipboard operation
bbgo copied to clipboard

use go 1.16 embed feature for front-end files

Open c9s opened this issue 4 years ago • 4 comments

c9s avatar Apr 28 '21 11:04 c9s

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 avatar May 09 '21 05:05 SDpower

@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.

c9s avatar May 09 '21 10:05 c9s

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 avatar May 09 '21 11:05 c9s

@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

lanphan avatar Mar 25 '24 08:03 lanphan