guid

package
v0.30.8 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 4 Imported by: 0

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

func Base58ToGuid(b58str string, inclHyphen bool) (string, error)

Base58ToGuid converts a Base58 string to a GUID string, with or without hyphens, using the Bitcoin alphabet.

func GuidToBase58

func GuidToBase58(guid string) (string, error)

GuidToBase58 converts a GUID string to a Base58 string using the Bitcoin alphabet.

func GuidToBigInt

func GuidToBigInt(guid string) (*big.Int, error)

GuidToBigInt converts a GUID string, with or with out hypens, to a *big.Int.

func ValidGuidHex

func ValidGuidHex(guid string) bool

ValidGuidHex checks to see if a string is a valid GUID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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