Skip to content

Commit 58a8269

Browse files
committed
Update folder structure
1 parent 2da962c commit 58a8269

25 files changed

+10
-10
lines changed

β€ŽMakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bin/$(ARCH)/$(BIN): build-dirs
8282
ARCH=$(ARCH) \
8383
VERSION=$(VERSION) \
8484
PKG=$(PKG) \
85-
./build/build.sh \
85+
./scripts/build.sh \
8686
"
8787

8888
# Example: make shell CMD="-c 'date > datefile'"
@@ -149,7 +149,7 @@ test-docker: build-dirs
149149
-v "$$(pwd)/.go/cache:/.cache" \
150150
-w /go/src/$(PKG) \
151151
$(BUILD_IMAGE) \
152-
/bin/sh -c " ./build/test.sh $(SRC_DIRS) "
152+
/bin/sh -c " ./scripts/test.sh $(SRC_DIRS) "
153153

154154
build-dirs:
155155
@mkdir -p bin/$(ARCH)
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Žcmd/server/doc.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package main // import "github.com/me-io/go-swap/cmd/server"
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Žpkg/exchanger/currencyLayer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package exchanger
22

33
import (
4-
"github.com/me-io/go-swap/pkg/staticMock"
4+
"github.com/me-io/go-swap/test/staticMock"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

β€Žpkg/exchanger/fixer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package exchanger
22

33
import (
4-
"github.com/me-io/go-swap/pkg/staticMock"
4+
"github.com/me-io/go-swap/test/staticMock"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

β€Žpkg/exchanger/google_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package exchanger
22

33
import (
4-
"github.com/me-io/go-swap/pkg/staticMock"
4+
"github.com/me-io/go-swap/test/staticMock"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

β€Žpkg/exchanger/yahoo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package exchanger
22

33
import (
4-
"github.com/me-io/go-swap/pkg/staticMock"
4+
"github.com/me-io/go-swap/test/staticMock"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

β€Žpkg/server/doc.go

-1
This file was deleted.

β€Žpkg/staticMock/doc.go

-1
This file was deleted.

β€Žpkg/swap/swap_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package swap
22

33
import (
44
ex "github.com/me-io/go-swap/pkg/exchanger"
5-
"github.com/me-io/go-swap/pkg/staticMock"
5+
"github.com/me-io/go-swap/test/staticMock"
66
"github.com/stretchr/testify/assert"
77
"reflect"
88
"testing"
File renamed without changes.
File renamed without changes.

β€Žbuild/server.sh β€Žscripts/server.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ set -o pipefail
66

77
my_dir="$(dirname "$0")"
88

9-
GO_FILES=`find ${my_dir}/../pkg/server/. -type f \( -iname "*.go" ! -iname "*_test.go" \)`
9+
GO_FILES=`find ${my_dir}/../cmd/server/. -type f \( -iname "*.go" ! -iname "*_test.go" \)`
1010
go run ${GO_FILES}
File renamed without changes.

β€Žtest/staticMock/doc.go

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package staticMock // import "github.com/me-io/go-swap/test/staticMock"
File renamed without changes.

0 commit comments

Comments
Β (0)