You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, you!
I'm learning GOLANG recently. For VUE package to GO, I tried to use Go Generate & Togo here, but output ERROR. I wanna know it happens whether my env or operation wrong?
Output following:
dist.go:3: error reading dist.go: unexpected EOF
Thanks for taking up your time!
The text was updated successfully, but these errors were encountered:
# build the frontend
yarn install && yarn build
# switch into `dist` foldercd dist
# embed static files with togo
togo http -package dist -output dist_gen.go
Then a new dist_gen.go file should be created. I am not sure what the problem is.
However, Go 1.16 provides go embed which allows you to embed static files into the target binary. Cardinal will support this feature and togo will be deprecated soon. Read this article written in Chinese to get more information about go embed.
Hey, you!
I'm learning GOLANG recently. For VUE package to GO, I tried to use Go Generate & Togo here, but output ERROR. I wanna know it happens whether my env or operation wrong?
Output following:
Thanks for taking up your time!
The text was updated successfully, but these errors were encountered: