diff --git a/cmd/internal/bindata.go b/cmd/internal/bindata.go index 1caae589..b3ebed35 100644 --- a/cmd/internal/bindata.go +++ b/cmd/internal/bindata.go @@ -22,7 +22,21 @@ var CmdBindata = &command.Command{ Short: "Use bindata to embed static resources", Long: ` If the go version is less than 1.16, you can use bindata to embed static resources - Example: go:generate energy bindata --fs --o=assets/assets.go --pkg=assets --paths=./resources,./assets +Example golang code: + package main + + import ( + "fmt" + // other imports... + ) + + //go:generate energy bindata --fs --o=assets/assets.go --pkg=assets --paths=./assets + + func main() { + // your code here... + } +Bash: Run the following command in the same directory + go generate `, }