utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentifierType

type IdentifierType int

IdentifierType represents the type of user identifier

const (
	IdentifierTypeUnknown IdentifierType = iota
	IdentifierTypeUsername
	IdentifierTypeEmail
	IdentifierTypePhone
)

func DetectIdentifierType

func DetectIdentifierType(identifier string) IdentifierType

DetectIdentifierType determines the type of identifier based on its format

func (IdentifierType) String

func (it IdentifierType) String() string

String returns the string representation of the identifier type

Jump to

Keyboard shortcuts

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