Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeQrText(qrTxt string) (string, *specs.AccountDetails, *specs.AccountDetails, *specs.BillingDetails, ...)
- func GetEnglishTranslationTable() *specs.TranslationTable
- func GetQrReferenceCheckNum(qrReference string) (string, error)
- func GetSha256(plain []byte) string
- func ReadQr(qrPath string) (string, error)
- func ValidateIban(iban string) error
- func ValidateReference(referenceType string, reference string) error
- type Token
Constants ¶
View Source
const ( IBAN_LEN = 21 COUNTRY_ID_LEN = 2 )
View Source
const CharSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
"abcdefghijklmnopqrstuvwxyz" +
"1234567890" +
`+-_"*%&<>()=?!:;@#/\|{}[].,`
Variables ¶
View Source
var QR_MATRIX = [10][10]int{
{0, 9, 4, 6, 8, 2, 7, 1, 3, 5},
{9, 4, 6, 8, 2, 7, 1, 3, 5, 0},
{4, 6, 8, 2, 7, 1, 3, 5, 0, 9},
{6, 8, 2, 7, 1, 3, 5, 0, 9, 4},
{8, 2, 7, 1, 3, 5, 0, 9, 4, 6},
{2, 7, 1, 3, 5, 0, 9, 4, 6, 8},
{7, 1, 3, 5, 0, 9, 4, 6, 8, 2},
{1, 3, 5, 0, 9, 4, 6, 8, 2, 7},
{3, 5, 0, 9, 4, 6, 8, 2, 7, 1},
{5, 0, 9, 4, 6, 8, 2, 7, 1, 3},
}
Functions ¶
func EncodeQrText ¶
func EncodeQrText(qrTxt string) (string, *specs.AccountDetails, *specs.AccountDetails, *specs.BillingDetails, error)
func GetEnglishTranslationTable ¶
func GetEnglishTranslationTable() *specs.TranslationTable
func GetQrReferenceCheckNum ¶
func ValidateIban ¶
func ValidateReference ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.