Skip to content

Commit

Permalink
fix(template): rename internal/logger to log (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Brumhard <tobias.brumhard@mail.schwarz>
  • Loading branch information
brumhard committed May 24, 2022
1 parent 5789c18 commit 223f463
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _template/cmd/{{.Base.appName}}/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"{{.Base.moduleName}}/internal/logger"
"{{.Base.moduleName}}/internal/log"
"go.uber.org/zap"

// This controls the maxprocs environment variable in container runtimes.
Expand All @@ -20,7 +20,7 @@ func main() {
}

func run() error {
logger, err := logger.NewAtLevel(os.Getenv("LOG_LEVEL"))
logger, err := log.NewAtLevel(os.Getenv("LOG_LEVEL"))
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package logger
package log

import (
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion pkg/gotemplate/testdata/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ base:
projectDescription: Some project used for testing
appName: testing
moduleName: github.com/fake/testing
golangciVersion: 1.42.1
golangciVersion: 1.46.2
extensions:
openSource:
author: "Marty Mc Fly"
Expand Down

0 comments on commit 223f463

Please sign in to comment.