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"
"os"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/qr"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/qr"
)
func main() {
@ -48,6 +48,6 @@ func main() {
```
## 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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,8 +4,8 @@ package ean
import (
"errors"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
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 (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
const (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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