label

package
v0.0.0-...-f5c1cdb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 12 Imported by: 0

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 CreateLabel(url string, labelString string) error

func GeneratePdfLabels

func GeneratePdfLabels(labelPaths []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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