Skip to content

Commit

Permalink
add envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Sep 27, 2021
1 parent d59d548 commit 49b2064
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions envvars/envvars.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package envvars

const (
PemData = "ATC_PEM_DATA"
PemPathVariable = "ATC_PEM_PATH"
AppId = "ATC_APP_ID"
GoPath = "PATH"
)
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module atcdemo

go 1.16
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
package main

import (
"atcdemo/envvars"
"fmt"
"os"
)

func main() {
fmt.Println(os.Getenv(envvars.AppId))
fmt.Println(os.Getenv(envvars.PemData))
fmt.Println(os.Getenv(envvars.PemPathVariable))
fmt.Println(os.Getenv(envvars.GoPath))
fmt.Println("a7")
}

0 comments on commit 49b2064

Please sign in to comment.