Renamed module

This commit is contained in:
Borna Rajković 2025-01-03 20:41:46 +01:00
parent ca3e24f327
commit c575a3c357
32 changed files with 48 additions and 48 deletions

View File

@ -27,8 +27,8 @@ import (
"image/png" "image/png"
"os" "os"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/qr" "git.bbr-dev.info/brajkovic/barcode/qr"
) )
func main() { func main() {
@ -48,6 +48,6 @@ func main() {
``` ```
## Documentation ## ## Documentation ##
See [GoDoc](https://godoc.org/github.com/boombuler/barcode) See [GoDoc](https://godoc.org/git.bbr-dev.info/brajkovic/barcode)
To create a barcode use the Encode function from one of the subpackages. To create a barcode use the Encode function from one of the subpackages.

View File

@ -5,8 +5,8 @@ import (
"image" "image"
"image/color" "image/color"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type aztecCode struct { type aztecCode struct {

View File

@ -4,8 +4,8 @@ package aztec
import ( import (
"fmt" "fmt"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func Test_StuffBits(t *testing.T) { func Test_StuffBits(t *testing.T) {

View File

@ -1,7 +1,7 @@
package aztec package aztec
import ( import (
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func bitsToWords(stuffedBits *utils.BitList, wordSize int, wordCount int) []int { func bitsToWords(stuffedBits *utils.BitList, wordSize int, wordCount int) []int {

View File

@ -1,7 +1,7 @@
package aztec package aztec
import ( import (
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func highlevelEncode(data []byte) *utils.BitList { func highlevelEncode(data []byte) *utils.BitList {

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func bitStr(bl *utils.BitList) string { func bitStr(bl *utils.BitList) string {

View File

@ -3,7 +3,7 @@ package aztec
import ( import (
"fmt" "fmt"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodingMode byte type encodingMode byte

View File

@ -3,7 +3,7 @@ package aztec
import ( import (
"fmt" "fmt"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type token interface { type token interface {

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"regexp" "regexp"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
var encodingTable = map[rune][]bool{ var encodingTable = map[rune][]bool{

View File

@ -6,8 +6,8 @@ import (
"strings" "strings"
"unicode/utf8" "unicode/utf8"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func strToRunes(str string) []rune { func strToRunes(str string) []rune {

View File

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodeInfo struct { type encodeInfo struct {

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"strings" "strings"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodeInfo struct { type encodeInfo struct {

View File

@ -3,8 +3,8 @@ package datamatrix
import ( import (
"strconv" "strconv"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type setValFunc func(byte) type setValFunc func(byte)

View File

@ -4,8 +4,8 @@ import (
"image" "image"
"image/color" "image/color"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type datamatrixCode struct { type datamatrixCode struct {

View File

@ -4,7 +4,7 @@ package datamatrix
import ( import (
"errors" "errors"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
) )
// Encode returns a Datamatrix barcode for the given content and color scheme // Encode returns a Datamatrix barcode for the given content and color scheme

View File

@ -1,7 +1,7 @@
package datamatrix package datamatrix
import ( import (
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type errorCorrection struct { type errorCorrection struct {

View File

@ -4,8 +4,8 @@ package ean
import ( import (
"errors" "errors"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodedNumber struct { type encodedNumber struct {

2
go.mod
View File

@ -1 +1 @@
module github.com/boombuler/barcode module git.bbr-dev.info/brajkovic/barcode

View File

@ -4,8 +4,8 @@ package pdf417
import ( import (
"fmt" "fmt"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"math/big" "math/big"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodingMode byte type encodingMode byte

View File

@ -4,8 +4,8 @@ import (
"image" "image"
"image/color" "image/color"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type pdfBarcode struct { type pdfBarcode struct {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
const charSet string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:" const charSet string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"

View File

@ -3,7 +3,7 @@ package qr
import ( import (
"fmt" "fmt"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func encodeAuto(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { func encodeAuto(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -4,8 +4,8 @@ package qr
import ( import (
"image" "image"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type encodeFn func(content string, eccLevel ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) type encodeFn func(content string, eccLevel ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error)

View File

@ -6,7 +6,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
) )
type test struct { type test struct {

View File

@ -1,7 +1,7 @@
package qr package qr
import ( import (
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type errorCorrection struct { type errorCorrection struct {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func encodeNumeric(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { func encodeNumeric(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -5,8 +5,8 @@ import (
"image/color" "image/color"
"math" "math"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
type qrcode struct { type qrcode struct {

View File

@ -3,7 +3,7 @@ package qr
import ( import (
"errors" "errors"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
func encodeUnicode(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { func encodeUnicode(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
"github.com/boombuler/barcode/utils" "git.bbr-dev.info/brajkovic/barcode/utils"
) )
const patternWidth = 5 const patternWidth = 5

View File

@ -5,7 +5,7 @@ import (
"image" "image"
"image/color" "image/color"
"github.com/boombuler/barcode" "git.bbr-dev.info/brajkovic/barcode"
) )
type base1DCode struct { type base1DCode struct {