MCPcopy Create free account
hub / github.com/boombuler/barcode

github.com/boombuler/barcode

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.1 ↗ · + Follow · compare 2 versions
347 symbols 1,004 edges 66 files 61 documented · 18% ● updated 13d agov1.1.1 · 2026-11-22★ 1,5666 open issues

Browse by type

⨍ Functions 301◇ Types & classes 46
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Join the chat at https://gitter.im/golang-barcode/Lobby

Introduction

This is a package for GO which can be used to create different types of barcodes.

Supported Barcode Types

  • 2 of 5
  • Aztec Code
  • Codabar
  • Code 128
  • Code 39
  • Code 93
  • Datamatrix
  • EAN 13
  • EAN 8
  • PDF 417
  • QR Code

Example

This is a simple example on how to create a QR-Code and write it to a png-file

package main

import (
    "image/png"
    "os"

    "github.com/boombuler/barcode"
    "github.com/boombuler/barcode/qr"
)

func main() {
    // Create the barcode
    qrCode, _ := qr.Encode("Hello World", qr.M, qr.Auto)

    // Scale the barcode to 200x200 pixels
    qrCode, _ = barcode.Scale(qrCode, 200, 200)

    // create the output file
    file, _ := os.Create("qrcode.png")
    defer file.Close()

    // encode the barcode as png
    png.Encode(file, qrCode)
}

Documentation

See GoDoc

To create a barcode use the Encode function from one of the subpackages.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 182
Method 119
Struct 29
TypeAlias 10
Interface 4
FuncType 3

Languages

Go100%

Modules by API surface

qr/qrcode.go16 symbols
scaledbarcode.go14 symbols
qr/encoder.go14 symbols
utils/base1dcode.go13 symbols
aztec/token.go13 symbols
datamatrix/codelayout.go12 symbols
aztec/state.go12 symbols
utils/bitlist.go11 symbols
datamatrix/datamatrixcode.go11 symbols
utils/gfpoly.go10 symbols
pdf417/highlevel.go10 symbols
aztec/azteccode.go10 symbols

For agents

$ claude mcp add barcode \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page