Documentation
¶
Overview ¶
Package code implements creation of Barcode, MatrixCode and QrCode.
Index ¶
- func NewAutoBarRow(code string, ps ...props.Barcode) core.Row
- func NewAutoMatrixRow(code string, ps ...props.Rect) core.Row
- func NewAutoQrRow(code string, ps ...props.Rect) core.Row
- func NewBar(code string, ps ...props.Barcode) core.Component
- func NewBarCol(size int, code string, ps ...props.Barcode) core.Col
- func NewBarRow(height float64, code string, ps ...props.Barcode) core.Row
- func NewMatrix(code string, barcodeProps ...props.Rect) core.Component
- func NewMatrixCol(size int, code string, ps ...props.Rect) core.Col
- func NewMatrixRow(height float64, code string, ps ...props.Rect) core.Row
- func NewQr(code string, barcodeProps ...props.Rect) core.Component
- func NewQrCol(size int, code string, ps ...props.Rect) core.Col
- func NewQrRow(height float64, code string, ps ...props.Rect) core.Row
- type Barcode
- type MatrixCode
- type QrCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAutoBarRow ¶
NewAutoBarRow is responsible to create an instance of a Barcode wrapped in a Row with automatic height. using this method the col size will be automatically set to the maximum value
- code: The value that must be placed in the barcode
- ps: A set of settings that must be applied to the barcode
func NewAutoMatrixRow ¶
NewAutoMatrixRow is responsible to create an instance of a Matrix code wrapped in a Row with automatic height.
- code: The value that must be placed in the matrixcode
- ps: A set of settings that must be applied to the matrixcode
func NewAutoQrRow ¶
NewAutoQrRow is responsible to create an instance of a qrcode wrapped in a Row with automatic height.
- code: The value that must be placed in the qrcode
- ps: A set of settings that must be applied to the qrcode
func NewBar ¶
NewBar is responsible to create an instance of a Barcode.
- code: The value that must be placed in the barcode
- ps: A set of settings that must be applied to the barcode
func NewBarCol ¶
NewBarCol is responsible to create an instance of a Barcode wrapped in a Col.
- size: O tamanho da coluna
- code: The value that must be placed in the barcode
- ps: A set of settings that must be applied to the barcode
func NewBarRow ¶
NewBarRow is responsible to create an instance of a Barcode wrapped in a Row. using this method the col size will be automatically set to the maximum value
- height: The height of the line
- code: The value that must be placed in the barcode
- ps: A set of settings that must be applied to the barcode
func NewMatrixCol ¶
NewMatrixCol is responsible to create an instance of a MatrixCode wrapped in a Col.
func NewMatrixRow ¶
NewMatrixRow is responsible to create an instance of a MatrixCode wrapped in a Row.
Types ¶
type Barcode ¶
type Barcode struct {
// contains filtered or unexported fields
}
func (*Barcode) GetStructure ¶
GetStructure returns the structure of a barcode. This method is typically used when creating tests
type MatrixCode ¶
type MatrixCode = rectCode