Update dependencies

This commit is contained in:
bluepython508 committed 2024-11-01 17:43:06 +00:00
1 parent 033ac0b400
commit 5cdfab398d
3596 files changed
+1033483 -259

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
// Copyright (c) 2022 Tailscale Inc & AUTHORS. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package wingoes
import (
"fmt"
"golang.org/x/sys/windows"
)
type GUID = windows.GUID
// MustGetGUID parses s, a string containing a GUID and returns a pointer to the
// parsed GUID. s must be specified in the format "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}".
// If there is an error parsing s, MustGetGUID panics.
func MustGetGUID(s string) *windows.GUID {
guid, err := windows.GUIDFromString(s)
if err != nil {
panic(fmt.Sprintf("wingoes.MustGetGUID(%q) error %v", s, err))
}
return &guid
}