const embedUnknown … const embedBytes … const embedString … const embedFiles … func embedFileList(v *ir.Name, kind int) []string { … } // embedKind determines the kind of embedding variable. func embedKind(typ *types.Type) int { … } func embedFileNameSplit(name string) (dir, elem string, isDir bool) { … } // embedFileLess implements the sort order for a list of embedded files. // See the comment inside ../../../../embed/embed.go's Files struct for rationale. func embedFileLess(x, y string) bool { … } // WriteEmbed emits the init data for a //go:embed variable, // which is either a string, a []byte, or an embed.FS. func WriteEmbed(v *ir.Name) { … }