Documentation ¶
Overview ¶
*******************************************************************
Author Oliviero Taleghani Date 2024-04-24
Description
Part of the label package, responsible for creating from an input url and description a label image that can be used for identifing a product in the warehouse. The idea is that whenever you add a new product into the software a new label get's generated using the URI of the product and the name of the product. The labels use qr codes to exchange info. This is because we want to make it as approchable as possible. Basically it should create in a certain folder a label image that can be retrieved afterwards. The idea is that you would put products into the software, print the labels by calling the pdf_generator, put then the labels on the warehouse and have an easy connection between the software and the warehouse. The URI should be something like /files/uri.png, where uri is the unique identifier.
Usage
err := CreateLabel("product1", "A simple product")
Dependency
https://github.com/skip2/go-qrcode
Todo
- [ ] Do I have to put into the label a SKU code?
Changelog
[0.0.1] 2024-04-24 Added Initial release
********************************************************************
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLabel ¶
func GeneratePdfLabels ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.