guid

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package guid handles uuid's encoded in the mixed-endianness format used by microsoft and uefi. For normal uuid-related functionality, use a different package - such as github.com/google/uuid .

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MSStr

func MSStr(u uuid.UUID) string

MSStr returns uppercase representation, in curly braces ("ms registry format")

func MSStrFromRegBin

func MSStrFromRegBin(binGuid []byte) string

MSStrFromRegBin decodes GUID found in REG_BINARY, return as uppercase string in {}. Used when extracting values from the windows registry.

Types

type MixedGuid

type MixedGuid [16]byte

A mixed-endianness guid, as used by MS and UEFI.

func FromStdEnc

func FromStdEnc(u uuid.UUID) (m MixedGuid)

Converts uuid.UUID to MixedGuid

func (MixedGuid) ToStdEnc

func (m MixedGuid) ToStdEnc() (u uuid.UUID)

Converts MixedGuid to a uuid.UUID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL