Skip to content

Commit 4e795c4

Browse files
dhumphreys01Admiral-Piett
authored andcommitted
Refactor internal packages
1 parent 3e612da commit 4e795c4

File tree

109 files changed

+2060
-2232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2060
-2232
lines changed

app/cmd/goaws.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"time"
88

9-
"github.com/Admiral-Piett/goaws/app"
9+
"github.com/Admiral-Piett/goaws/app/models"
1010

1111
log "github.com/sirupsen/logrus"
1212

@@ -46,8 +46,8 @@ func main() {
4646

4747
portNumbers := conf.LoadYamlConfig(filename, env)
4848

49-
if app.CurrentEnvironment.LogToFile {
50-
filename := app.CurrentEnvironment.LogFile
49+
if models.CurrentEnvironment.LogToFile {
50+
filename := models.CurrentEnvironment.LogFile
5151
file, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
5252
if err == nil {
5353
log.SetOutput(file)

app/common/common.go

Lines changed: 0 additions & 81 deletions
This file was deleted.

app/common/common_test.go

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)