embedhash

Generate a map with hashes for all embedded files. See Go Reference for documentation.
Let's say we have valid.go that has embedded files.
package valid
import "embed"
//go:embed test.md uhoh/*
var _ embed.FS
By running embedhash, we can generate embedhash.go that has the hashes for all the files being embedded.
// Code generated by embedhash, DO NOT EDIT.
package valid
var HashesForEmbedded = map[string]string{
"test.md": "ceb0947a7db674632116cb7fefb5424e",
"uhoh/uhoh.go": "07e16a3b94e2bd127b42ce10d4d99c43",
}