Documentation
¶
Index ¶
- type Email
- func (e Email) Domain() string
- func (e Email) Equal(other Email) bool
- func (e Email) LocalPart() string
- func (e Email) MarshalJSON() ([]byte, error)
- func (e *Email) Scan(src any) error
- func (e Email) String() string
- func (e *Email) UnmarshalJSON(data []byte) error
- func (e Email) Valid() bool
- func (e Email) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
Email represents an email address value object
func (Email) MarshalJSON ¶
MarshalJSON exposes the address, never the internal representation.
func (*Email) UnmarshalJSON ¶
UnmarshalJSON validates and normalizes before replacing the value.
Click to show internal directories.
Click to hide internal directories.