tools

package
v0.0.0-...-5db6f32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindValidate

func BindValidate(o interface{}) error

BindValidate function

func PairValues

func PairValues(i, o interface{}) error

PairValues function

Types

type StringNumber

type StringNumber struct {
	// contains filtered or unexported fields
}

func (*StringNumber) NextValString

func (s *StringNumber) NextValString() string

func (*StringNumber) SetCounter

func (s *StringNumber) SetCounter(setCounterVal int)

func (*StringNumber) SetNDigit

func (s *StringNumber) SetNDigit(digitVal int)

func (*StringNumber) ValString

func (s *StringNumber) ValString(num int) string

type Tools

type Tools struct{}

Tools type

func (Tools) PrintPDF

func (tool Tools) PrintPDF(name, callSign, band, templatePath, outPath, fileType string) error

PrintPDF method

func (Tools) PrintPDFV2

func (tool Tools) PrintPDFV2(name, callSign, band, templatePath, fileType string, w io.Writer) error

PrintPDFV2 method

func (Tools) PrintPDFV3

func (tool Tools) PrintPDFV3(name, callSign, band, frequency, templatePath, fileType string, w io.Writer, imageCertTemplate models.ImageCertTemplate) error

PrintPDFV3 method

func (Tools) PrintPDFV4

func (tool Tools) PrintPDFV4(certNumber string, identity models.Identity, identityIndex int, templatePath, fileType string, w io.Writer, imageCertTemplate models.ImageCertTemplate) error

PrintPDFV4 method

func (Tools) RNDString

func (tool Tools) RNDString(n int) string

RNDString method

func (Tools) ReplaceRegex

func (tool Tools) ReplaceRegex(b64url *string, b64 *string)

ReplaceRegex method

func (Tools) SaveImageFromB64

func (tool Tools) SaveImageFromB64(b64 string, filePath string) error

SaveImageFromB64 method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL