Skip to content

Commit

Permalink
Merge pull request #125 from bschaatsbergen/move-to-internal
Browse files Browse the repository at this point in the history
Make API private
  • Loading branch information
bschaatsbergen authored Feb 15, 2025
2 parents 66cacf7 + 227d7be commit 26b060e
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ linters:
- decorder
- dogsled
- errcheck
- exportloopref
- copyloopvar
- forcetypeassert
- funlen
- godot
Expand All @@ -34,7 +34,7 @@ linters:
- nilerr
- predeclared
- staticcheck
- tenv
- usetesting
- unconvert
- unparam
- unused
Expand Down
2 changes: 1 addition & 1 deletion cmd/contains.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"os"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"os"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/divide.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"strconv"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/pkg/helper"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/bschaatsbergen/cidr/internal/helper"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"os"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/pkg/helper"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/bschaatsbergen/cidr/internal/helper"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/overlaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"os"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bschaatsbergen/cidr

go 1.21.4
go 1.23.6

require (
github.com/fatih/color v1.18.0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/core/core.go → internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/big"
"net"

"github.com/bschaatsbergen/cidr/pkg/helper"
"github.com/bschaatsbergen/cidr/internal/helper"
)

// ParseCIDR parses the given CIDR notation string and returns the corresponding IP network.
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/core_test.go → internal/core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"testing"

"github.com/bschaatsbergen/cidr/pkg/core"
"github.com/bschaatsbergen/cidr/internal/core"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package helper_test
import (
"testing"

"github.com/bschaatsbergen/cidr/pkg/helper"
"github.com/bschaatsbergen/cidr/internal/helper"
)

func TestContainsInt(t *testing.T) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package helper_test
import (
"testing"

"github.com/bschaatsbergen/cidr/pkg/helper"
"github.com/bschaatsbergen/cidr/internal/helper"
)

func TestFormatNumber(t *testing.T) {
Expand Down
File renamed without changes.

0 comments on commit 26b060e

Please sign in to comment.