func StringToGUID(s string) *EFIGUID {
	decoded, _ := hex.DecodeString(strings.ReplaceAll(s, "-", ""))
	return BytesToGUID(decoded)
}
Convert a string to an EFIGUID
package util
import (
	"bytes"
	"encoding/binary"
	"encoding/hex"
	"fmt"
	"strings"
)
type EFIGUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]uint8
}
const SizeofEFIGUID uint32 = 16
func (e *EFIGUID) Format() string {
	return fmt.Sprintf("%08x-%04x-%04x-%04x-%12x", e.Data1, e.Data2, e.Data3, e.Data4[:2], e.Data4[2:])
}
func (e *EFIGUID) Bytes() []byte {
	return GUIDToBytes(e)
}
func CmpEFIGUID(cmp1 EFIGUID, cmp2 EFIGUID) bool {
	return cmp1.Data1 == cmp2.Data1 &&
		cmp1.Data2 == cmp2.Data2 &&
		cmp1.Data3 == cmp2.Data3 &&
		cmp1.Data4 == cmp2.Data4
}