Skip to content

Commit

Permalink
feat: add loaded path to config
Browse files Browse the repository at this point in the history
  • Loading branch information
mehditeymorian committed Aug 30, 2022
1 parent 5775107 commit 0ecf3b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
)

type Config struct {
loadedPath string
Algorithms []string
Expirations []string

Expand All @@ -36,6 +37,8 @@ type Config struct {
func Load(path string) Config {
var cfg Config

cfg.loadedPath = path

k := koanf.New(".")

// load default configuration
Expand Down

0 comments on commit 0ecf3b7

Please sign in to comment.