Documentation ¶
Overview ¶
package otc provides alphanumeric One Time Codes that can be used for email-based 2FA, account verification and more.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenIsNotValid = errors.New("otc: token is not valid")
)
Functions ¶
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
func (*Code) CodeHTML ¶
CodeHTML returns the code wrapped in a <span> and with numbers wrapped in <span style="color: red">
type NewCodeOptions ¶
type NewCodeOptions struct { }
Click to show internal directories.
Click to hide internal directories.