Skip to content

Commit

Permalink
Work with package loadvars
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Khramtsov committed Sep 18, 2023
1 parent 7a827fd commit d30b090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
ctx := context.Background()
envvars := loadvars.LoadVars()

fmt.Println(envvars.nameSpace)
fmt.Println(envvars)

workStart := 10
workEnd := 19
Expand Down
4 changes: 2 additions & 2 deletions pkg/loadvars/loadvrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type EnvVars struct {
timeToDelete int64
}

func LoadVars() *EnvVars {
func LoadVars() EnvVars {
var envvars EnvVars

workStartStr := os.Getenv("WORK_START")
Expand All @@ -38,5 +38,5 @@ func LoadVars() *EnvVars {
log.Fatal("Environment variable TIME_TO_DELETE not set: ", err)
}
envvars.timeToDelete = timeToDelete
return &envvars
return envvars
}

0 comments on commit d30b090

Please sign in to comment.