Versions in this module Expand all Collapse all v1 v1.3.0 Jul 1, 2019 v1.2.0 Mar 17, 2018 Changes in this version + var ErrGenerateMissingAccountName = errors.New("AccountName must be set") + var ErrGenerateMissingIssuer = errors.New("Issuer must be set") + var ErrValidateInputInvalidLength6 = errors.New("Input was not 6 characters") + var ErrValidateInputInvalidLength8 = errors.New("Input was not 8 characters") + var ErrValidateSecretInvalidBase32 = errors.New("Decoding of secret as base32 failed.") + type Algorithm int + const AlgorithmMD5 + const AlgorithmSHA1 + const AlgorithmSHA256 + const AlgorithmSHA512 + func (a Algorithm) Hash() hash.Hash + func (a Algorithm) String() string + type Digits int + const DigitsEight + const DigitsSix + func (d Digits) Format(in int32) string + func (d Digits) Length() int + func (d Digits) String() string + type Key struct + func NewKeyFromURL(orig string) (*Key, error) + func (k *Key) AccountName() string + func (k *Key) Image(width int, height int) (image.Image, error) + func (k *Key) Issuer() string + func (k *Key) Secret() string + func (k *Key) String() string + func (k *Key) Type() string