Skip to content

Commit

Permalink
changed imports of internals to include project name
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel Harbers committed Apr 29, 2019
1 parent bcfb636 commit 6415a8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:alpine

WORKDIR /go/src/myproject
WORKDIR /go/src/project-layout

COPY cmd cmd
COPY internal /go/src/
COPY internal internal
RUN ls -la /go/src
RUN go build -o myapp ./cmd/myapp/main.go
RUN ./myapp
4 changes: 2 additions & 2 deletions cmd/myapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"app/myapp"
"pkg/myprivatelib"
"project-layout/internal/app/myapp"
"project-layout/internal/pkg/myprivatelib"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/app/myapp/appcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package myapp

import (
"fmt"
"pkg/myprivatelib"
"project-layout/internal/pkg/myprivatelib"
)

func Appfunc() {
Expand Down

0 comments on commit 6415a8f

Please sign in to comment.