refactor: use internal instead pkg (#17)

main
sudo pacman -Syu 2021-05-05 15:11:54 +07:00 committed by GitHub
parent 846a150cfd
commit 0fa8f429db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 13 additions and 13 deletions

View File

@ -5,8 +5,8 @@ import (
"strings"
"time"
"github.com/haunt98/changeloguru/pkg/convention"
"github.com/haunt98/changeloguru/pkg/markdown"
"github.com/haunt98/changeloguru/internal/convention"
"github.com/haunt98/changeloguru/internal/markdown"
"github.com/haunt98/clock"
)

View File

@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/haunt98/changeloguru/pkg/convention"
"github.com/haunt98/changeloguru/pkg/markdown"
"github.com/haunt98/changeloguru/internal/convention"
"github.com/haunt98/changeloguru/internal/markdown"
"github.com/sebdah/goldie/v2"
)

View File

@ -1,6 +1,6 @@
package changelog
import "github.com/haunt98/changeloguru/pkg/convention"
import "github.com/haunt98/changeloguru/internal/convention"
const (
addedType = "Added"

View File

@ -7,10 +7,10 @@ import (
"strings"
"time"
"github.com/haunt98/changeloguru/pkg/changelog"
"github.com/haunt98/changeloguru/pkg/convention"
"github.com/haunt98/changeloguru/pkg/git"
"github.com/haunt98/changeloguru/pkg/markdown"
"github.com/haunt98/changeloguru/internal/changelog"
"github.com/haunt98/changeloguru/internal/convention"
"github.com/haunt98/changeloguru/internal/git"
"github.com/haunt98/changeloguru/internal/markdown"
"github.com/pkg/diff"
"github.com/pkg/diff/write"
"github.com/urfave/cli/v2"

View File

@ -1,7 +1,7 @@
package convention
import (
"github.com/haunt98/changeloguru/pkg/git"
"github.com/haunt98/changeloguru/internal/git"
)
// https://www.conventionalcommits.org/en/v1.0.0/

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/haunt98/changeloguru/pkg/git"
"github.com/haunt98/changeloguru/internal/git"
"github.com/sebdah/goldie/v2"
"github.com/stretchr/testify/assert"
)

View File

@ -6,7 +6,7 @@ import (
"regexp"
"strings"
"github.com/haunt98/changeloguru/pkg/git"
"github.com/haunt98/changeloguru/internal/git"
"github.com/haunt98/clock"
)

View File

@ -1,6 +1,6 @@
package main
import "github.com/haunt98/changeloguru/pkg/cli"
import "github.com/haunt98/changeloguru/internal/cli"
func main() {
app := cli.NewApp()