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
Click to show internal directories.
Click to hide internal directories.