uuidvalidator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UuidRegexp = regexp.MustCompile(
	`^(?:` +
		`[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}` +
		`|` +
		`[a-z][0-9a-fA-F]{8}` +
		`)$`,
)

UuidRegexp matches: - Standard UUID format: 8-4-4-4-12 (hex with hyphens) - SAP subaccount ID format: [a-z] + 8 hex characters (e.g. xf014edd7)

Functions

func ValidUUID

func ValidUUID() validator.String

ValidUUID validates that the string attribute value is either a standard UUID or a SAP subaccount ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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