Documentation
¶
Overview ¶
Package gs1qr encodes GS1 QR codes.
The GS1 specification is at https://www.gs1.org/docs/barcodes/GS1_General_Specifications.pdf. See also https://2016archive.gs1us.org/gs1-us-library/command/core_download/entryid/768/method/attachment
QR code generation is based on Russ Cox' qr package: https://github.com/rsc/qr
Example ¶
list, err := ai.ParseSeq("(01)03453120000011(8200)http://abc.net(10)XYZ(410)9501101020917") if err != nil { fmt.Println(err) return } el := ConvertElements(list) fmt.Println(strings.Join(el.Strings(), ""))
Output: <FNC1>01034531200000118200http://abc.net<GS>10XYZ%4109501101020917
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ElemList ¶
type ElemList []Elem
ElemList is a slice of elements.
func ConvertElements ¶
ConvertElements initializes a slice of Elem from a slice of ai.Elem.
Click to show internal directories.
Click to hide internal directories.