helper

package
v0.0.0-...-b47799d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MatchUuid = func(log log.T, uuidParamKey string) bool {
		uuid := strings.ToLower(GetSystemInfo(log, uuidParamKey))
		isBigEndianEc2Uuid := regexp.MustCompile(bigEndianEc2UuidRegex).MatchString(uuid)
		isLittleEndianEc2Uuid := regexp.MustCompile(littleEndianEc2UuidRegex).MatchString(uuid)

		return isBigEndianEc2Uuid || isLittleEndianEc2Uuid
	}

	GetSystemInfo = func(log log.T, paramKey string) string {
		paramValue, _ := platform.GetSystemInfo(log, paramKey)
		return paramValue
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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