guid_nonwindows.go 444 B

12345678910111213141516
  1. //go:build !windows
  2. // +build !windows
  3. package guid
  4. // GUID represents a GUID/UUID. It has the same structure as
  5. // golang.org/x/sys/windows.GUID so that it can be used with functions expecting
  6. // that type. It is defined as its own type as that is only available to builds
  7. // targeted at `windows`. The representation matches that used by native Windows
  8. // code.
  9. type GUID struct {
  10. Data1 uint32
  11. Data2 uint16
  12. Data3 uint16
  13. Data4 [8]byte
  14. }