Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 7b75d62

Browse files
author
Nicolas Levée
committed
feat: add dotenv loader
1 parent ebb79a0 commit 7b75d62

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

.env.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export WOOS_KEY=woos-abcdefghijklmnop0123456789
2-
export WOOS_DOMAIN=mondomaine.fr
1+
WOOS_KEY=woos-abcdefghijklmnop0123456789
2+
WOOS_DOMAIN=mondomaine.fr

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ require (
77
github.com/antchfx/xpath v1.1.5 // indirect
88
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
99
github.com/gorilla/mux v1.7.4
10+
github.com/joho/godotenv v1.3.0
1011
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
1112
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18h
66
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
77
github.com/gorilla/mux v1.7.4 h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc=
88
github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
9+
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
10+
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
911
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
1012
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k=
1113
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77

88
"github.com/nlevee/go-auchan-drive-checker/internal/api"
99
"github.com/nlevee/go-auchan-drive-checker/pkg/auchan"
10+
11+
_ "github.com/joho/godotenv/autoload"
1012
)
1113

1214
func main() {

0 commit comments

Comments
 (0)