//go:embed static/* var staticFiles embed.FS

//go:embed templates/*.html var templateFS embed.FS package main import ( "embed" "log" )

//go:embed logo.png var logoBytes []byte

func main() data, _ := staticFiles.ReadFile("static/style.css") log.Println(string(data))

Create a hard link err := os.Link("original.txt", "hardlink.txt") Check if two files are hard-linked s1, _ := os.Stat("file1.txt") s2, _ := os.Stat("file2.txt") if os.SameFile(s1, s2) fmt.Println("Same file (hard link)")

//go:generate stringer -type=Pill //go:generate go-bindata -o static.go static/ Run with: