mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
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:
parent
fee8a037dc
commit
8ba9092d9c
8
main.go
8
main.go
@ -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() {
|
||||||
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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 {
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user