examples icon indicating copy to clipboard operation
examples copied to clipboard

How can i generate assets.go???

Open vantrung8794 opened this issue 3 years ago • 1 comments

image

How can I do right now? I could not use command go-assets-builder html -o assets.go And the result is always zsh: command not found: go-assets-builder Please help me...

vantrung8794 avatar Jul 21 '21 13:07 vantrung8794

You can try the following example using embed in Go 1.16

https://github.com/gin-gonic/examples/tree/master/assets-in-binary/example02

appleboy avatar Aug 03 '21 04:08 appleboy

@vantrung8794 maybe you can install the command go-assets-builder as follows:

go get github.com/jessevdk/go-assets-builder
go install github.com/jessevdk/go-assets-builder@latest

mumingv avatar Jan 23 '23 13:01 mumingv