Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailValidationService ¶
type EmailValidationService struct { }
EmailValidationService realizes the EmailValidationProvider interface by offering functions for working with email validation and manipulation.
func NewEmailValidationService ¶
func NewEmailValidationService() *EmailValidationService
func (*EmailValidationService) GetEmailComponents ¶
func (service *EmailValidationService) GetEmailComponents(email string) (*mail.Address, error)
func (*EmailValidationService) IsValidEmail ¶
func (service *EmailValidationService) IsValidEmail(email string) bool
type XSSService ¶
type XSSService struct {
// contains filtered or unexported fields
}
XSSService implements the XSSServiceProvider interface and offers functions to help address cross-site script and sanitization concerns.
func NewXSSService ¶
func NewXSSService() *XSSService
NewXSSService creates a new cross-site scripting service.
func (*XSSService) SanitizeString ¶
func (service *XSSService) SanitizeString(input string) string
SanitizeString attempts to sanitize a string by removing potentially dangerous HTML/JS markup.
Click to show internal directories.
Click to hide internal directories.