Skip to content

Commit

Permalink
U: 修改binddata帮助说明
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Jan 10, 2024
1 parent 17d6d15 commit 4037c6a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cmd/internal/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
`,
}

Expand Down

0 comments on commit 4037c6a

Please sign in to comment.