feat: read config from environment

This commit is contained in:
Xhofe
2022-03-12 20:38:22 +08:00
parent b1d7a980d9
commit 9c2fc8e860
4 changed files with 34 additions and 19 deletions

3
go.mod
View File

@ -4,6 +4,7 @@ go 1.17
require (
github.com/aws/aws-sdk-go v1.27.0
github.com/caarlos0/env/v6 v6.9.1
github.com/eko/gocache/v2 v2.1.0
github.com/gin-contrib/cors v1.3.1
github.com/gin-gonic/gin v1.7.4
@ -25,7 +26,7 @@ require (
require (
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fatih/color v1.13.0
github.com/mattn/go-colorable v0.1.9 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
)