Renamed module
This commit is contained in:
parent
ca3e24f327
commit
c575a3c357
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -3,7 +3,7 @@ package aztec
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
type encodingMode byte
|
||||
|
|
|
@ -3,7 +3,7 @@ package aztec
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
type token interface {
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package datamatrix
|
||||
|
||||
import (
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
type errorCorrection struct {
|
||||
|
|
|
@ -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
2
go.mod
|
@ -1 +1 @@
|
|||
module github.com/boombuler/barcode
|
||||
module git.bbr-dev.info/brajkovic/barcode
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"math/big"
|
||||
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
type encodingMode byte
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
const charSet string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/boombuler/barcode"
|
||||
"git.bbr-dev.info/brajkovic/barcode"
|
||||
)
|
||||
|
||||
type test struct {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package qr
|
||||
|
||||
import (
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"git.bbr-dev.info/brajkovic/barcode/utils"
|
||||
)
|
||||
|
||||
type errorCorrection struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"image"
|
||||
"image/color"
|
||||
|
||||
"github.com/boombuler/barcode"
|
||||
"git.bbr-dev.info/brajkovic/barcode"
|
||||
)
|
||||
|
||||
type base1DCode struct {
|
||||
|
|
Loading…
Reference in New Issue