feat: Made the packages public

In order to let third parties use the package of this library, we moved
the pkg folder out of the locked internal folder
This commit is contained in:
thomor 2024-09-24 22:37:00 +02:00
parent fee8a037dc
commit 8ba9092d9c
42 changed files with 30 additions and 30 deletions

View File

@ -14,10 +14,10 @@ import (
"github.com/tcnksm/go-latest" "github.com/tcnksm/go-latest"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/converter" "github.com/celogeek/go-comic-converter/v2/pkg/converter"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epub" "github.com/celogeek/go-comic-converter/v2/pkg/epub"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions" "github.com/celogeek/go-comic-converter/v2/pkg/epuboptions"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
func main() { func main() {

View File

@ -18,7 +18,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type Converter struct { type Converter struct {

View File

@ -10,7 +10,7 @@ import (
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type Options struct { type Options struct {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type Profile struct { type Profile struct {

View File

@ -14,14 +14,14 @@ import (
"github.com/gofrs/uuid" "github.com/gofrs/uuid"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage" "github.com/celogeek/go-comic-converter/v2/pkg/epubimage"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimageprocessor" "github.com/celogeek/go-comic-converter/v2/pkg/epubimageprocessor"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions" "github.com/celogeek/go-comic-converter/v2/pkg/epuboptions"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubprogress" "github.com/celogeek/go-comic-converter/v2/pkg/epubprogress"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubtemplates" "github.com/celogeek/go-comic-converter/v2/pkg/epubtemplates"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubtree" "github.com/celogeek/go-comic-converter/v2/pkg/epubtree"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubzip" "github.com/celogeek/go-comic-converter/v2/pkg/epubzip"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type EPUB struct { type EPUB struct {

View File

@ -5,7 +5,7 @@ import (
"image" "image"
"strings" "strings"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type EPUBImage struct { type EPUBImage struct {

View File

@ -27,9 +27,9 @@ import (
pdfimage "github.com/raff/pdfreader/image" pdfimage "github.com/raff/pdfreader/image"
"github.com/raff/pdfreader/pdfread" "github.com/raff/pdfreader/pdfread"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/sortpath" "github.com/celogeek/go-comic-converter/v2/pkg/sortpath"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type task struct { type task struct {

View File

@ -9,12 +9,12 @@ import (
"github.com/disintegration/gift" "github.com/disintegration/gift"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage" "github.com/celogeek/go-comic-converter/v2/pkg/epubimage"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimagefilters" "github.com/celogeek/go-comic-converter/v2/pkg/epubimagefilters"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions" "github.com/celogeek/go-comic-converter/v2/pkg/epuboptions"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubprogress" "github.com/celogeek/go-comic-converter/v2/pkg/epubprogress"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubzip" "github.com/celogeek/go-comic-converter/v2/pkg/epubzip"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type EPUBImageProcessor struct { type EPUBImageProcessor struct {

View File

@ -1,7 +1,7 @@
package epuboptions package epuboptions
import ( import (
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type View struct { type View struct {

View File

@ -9,7 +9,7 @@ import (
"github.com/schollz/progressbar/v3" "github.com/schollz/progressbar/v3"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type Options struct { type Options struct {

View File

@ -3,9 +3,9 @@ package epubtemplates
import ( import (
"github.com/beevik/etree" "github.com/beevik/etree"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage" "github.com/celogeek/go-comic-converter/v2/pkg/epubimage"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epuboptions" "github.com/celogeek/go-comic-converter/v2/pkg/epuboptions"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/utils" "github.com/celogeek/go-comic-converter/v2/pkg/utils"
) )
type Content struct { type Content struct {

View File

@ -6,7 +6,7 @@ import (
"github.com/beevik/etree" "github.com/beevik/etree"
"github.com/celogeek/go-comic-converter/v2/internal/pkg/epubimage" "github.com/celogeek/go-comic-converter/v2/pkg/epubimage"
) )
// Toc create toc // Toc create toc