`go list` seem to help to find embedded files:
https://pkg.go.dev/embed#hdr-Tools
> To support tools that analyze Go packages, the patterns found in //go:embed lines are available in “go list” output. > See the EmbedPatterns, TestEmbedPatterns, and XTestEmbedPatterns fields in the “go help list” output.

```
~/golang-google-protobuf# go list -f '{{- if .EmbedFiles -}}{{ .ImportPath }} {{ .EmbedFiles }}{{ end }}' all
crypto/internal/nistec [p256_asm_table.bin]
google.golang.org/protobuf/internal/editiondefaults [editions_defaults.binpb]
```
filter to only list files from the current source needed

Reply via email to