Skip to content

Instantly share code, notes, and snippets.

@faustman
Last active May 8, 2025 11:41
Show Gist options
  • Save faustman/b7213e55a5a53ba32abe3cb365d7fca0 to your computer and use it in GitHub Desktop.
Save faustman/b7213e55a5a53ba32abe3cb365d7fca0 to your computer and use it in GitHub Desktop.
Examine Go embed.FS content
package main
import (
"embed"
"fmt"
"io/fs"
)
//go:embed *
var content embed.FS
func main() {
fs.WalkDir(content, ".", func(path string, d fs.DirEntry, err error) error {
fmt.Println(path)
return nil
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment