Skip to content

Commit 11762f6

Browse files
committed
chore: refactoring code structure for better organization
1 parent 4df9331 commit 11762f6

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
66
GOARCH := $(shell go env GOARCH)
77
GOOS := $(shell go env GOOS)
88
BUILDDATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
9-
CODEVERSION := "1.1.3"
9+
CODEVERSION := "1.1.4"
1010
CODEBUILDREVISION := $(shell git rev-parse HEAD)
1111
.PHONY: all dep build clean test coverage zip lint
1212

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**ecutils**
55

66
## Version of the *Software*
7-
**1.1.3**
7+
**1.1.4**
88

99
## *Software* Description
1010

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PKG="$PROJECT_NAME"
55
PKG_LIST=$(go list "${PKG}/..." | grep -v /vendor/)
66
GO_FILES=$(find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
77
BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
8-
CODEVERSION="1.1.3"
8+
CODEVERSION="1.1.4"
99
CODEBUILDREVISION=$(git rev-parse HEAD)
1010
TARGETS=(
1111
"linux/386"

cmd/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package main
22

33
import (
4-
pkg_ec "github.com/isakruas/go-ecutils/internal/ec"
5-
pkg_ecdh "github.com/isakruas/go-ecutils/internal/ecdh"
6-
pkg_ecdsa "github.com/isakruas/go-ecutils/internal/ecdsa"
7-
pkg_eck "github.com/isakruas/go-ecutils/internal/eck"
8-
pkg_ecmo "github.com/isakruas/go-ecutils/internal/ecmo"
4+
pkg_ec "github.com/isakruas/go-ecutils/pkg/ec"
5+
pkg_ecdh "github.com/isakruas/go-ecutils/pkg/ecdh"
6+
pkg_ecdsa "github.com/isakruas/go-ecutils/pkg/ecdsa"
7+
pkg_eck "github.com/isakruas/go-ecutils/pkg/eck"
8+
pkg_ecmo "github.com/isakruas/go-ecutils/pkg/ecmo"
99

1010
"flag"
1111
"fmt"
File renamed without changes.

internal/ec/ec_test.go renamed to pkg/ec/ec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"math/big"
55
"testing"
66

7-
"github.com/isakruas/go-ecutils/internal/ec"
7+
"github.com/isakruas/go-ecutils/pkg/ec"
88
)
99

1010
func TestECTrapdoorPanic(t *testing.T) {

internal/ecdh/ecdh.go renamed to pkg/ecdh/ecdh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package ecdh
99
import (
1010
"math/big"
1111

12-
"github.com/isakruas/go-ecutils/internal/ec"
12+
"github.com/isakruas/go-ecutils/pkg/ec"
1313
)
1414

1515
// ECDH represents an Elliptic Curve Diffie Hellman entity with a curve and a private key

internal/ecdh/ecdh_test.go renamed to pkg/ecdh/ecdh_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"math/big"
55
"testing"
66

7-
"github.com/isakruas/go-ecutils/internal/ec"
8-
"github.com/isakruas/go-ecutils/internal/ecdh"
7+
"github.com/isakruas/go-ecutils/pkg/ec"
8+
"github.com/isakruas/go-ecutils/pkg/ecdh"
99
)
1010

1111
func TestECDHPublicKey(t *testing.T) {

internal/ecdsa/ecdsa.go renamed to pkg/ecdsa/ecdsa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"math/rand"
1212
"time"
1313

14-
"github.com/isakruas/go-ecutils/internal/ec"
14+
"github.com/isakruas/go-ecutils/pkg/ec"
1515
)
1616

1717
// ECDSA structure

internal/ecdsa/ecdsa_test.go renamed to pkg/ecdsa/ecdsa_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"math/big"
55
"testing"
66

7-
"github.com/isakruas/go-ecutils/internal/ec"
8-
"github.com/isakruas/go-ecutils/internal/ecdsa"
7+
"github.com/isakruas/go-ecutils/pkg/ec"
8+
"github.com/isakruas/go-ecutils/pkg/ecdsa"
99
)
1010

1111
func TestECDSAPublicKey(t *testing.T) {

internal/eck/eck.go renamed to pkg/eck/eck.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"math/big"
1111

12-
"github.com/isakruas/go-ecutils/internal/ec"
12+
"github.com/isakruas/go-ecutils/pkg/ec"
1313
)
1414

1515
// ECK structure holding an elliptic curve

internal/eck/eck_test.go renamed to pkg/eck/eck_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"math/big"
66
"testing"
77

8-
"github.com/isakruas/go-ecutils/internal/ec"
9-
"github.com/isakruas/go-ecutils/internal/eck"
8+
"github.com/isakruas/go-ecutils/pkg/ec"
9+
"github.com/isakruas/go-ecutils/pkg/eck"
1010
)
1111

1212
func TestECKEncodeDefault(t *testing.T) {

internal/ecmo/ecmo.go renamed to pkg/ecmo/ecmo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ package ecmo
1313
import (
1414
"math/big"
1515

16-
"github.com/isakruas/go-ecutils/internal/ec"
17-
"github.com/isakruas/go-ecutils/internal/ecdsa"
18-
"github.com/isakruas/go-ecutils/internal/eck"
16+
"github.com/isakruas/go-ecutils/pkg/ec"
17+
"github.com/isakruas/go-ecutils/pkg/ecdsa"
18+
"github.com/isakruas/go-ecutils/pkg/eck"
1919
)
2020

2121
// ECMO represents the Massey–Omura elliptic curve protocol.

internal/ecmo/ecmo_test.go renamed to pkg/ecmo/ecmo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"math/big"
66
"testing"
77

8-
"github.com/isakruas/go-ecutils/internal/ec"
9-
"github.com/isakruas/go-ecutils/internal/ecmo"
8+
"github.com/isakruas/go-ecutils/pkg/ec"
9+
"github.com/isakruas/go-ecutils/pkg/ecmo"
1010
)
1111

1212
func TestECMOPublicKey(t *testing.T) {

0 commit comments

Comments
 (0)