Documentation ¶
Overview ¶
encoding/guid supports encoding and decoding Guid values.
Index ¶
Constants ¶
View Source
const (
// GuidPattern is a regexp pattern for GUIDs.
GUIDPattern = `^([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})$`
)
Variables ¶
This section is empty.
Functions ¶
func Base58ToGUID ¶ added in v0.37.0
Base58ToGUID converts a Base58 string to a GUID string, with or without hyphens, using the Bitcoin alphabet.
func GUIDToBase58 ¶ added in v0.37.0
GUIDToBase58 converts a GUID string to a Base58 string using the Bitcoin alphabet.
func GUIDToBigInt ¶ added in v0.37.0
GUIDToBigInt converts a GUID string, with or with out hypens, to a *big.Int.
func ValidGUIDHex ¶ added in v0.37.0
ValidGUIDHex checks to see if a string is a valid GUID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.