Skip to content

Move config to env - #4

Merged
SumanthPuram merged 5 commits into
masterfrom
move-config-to-env
Jul 22, 2019
Merged

SumanthPuram merged 5 commits into
masterfrom
move-config-to-env

Conversation

@lokey

@lokey lokey commented Jul 19, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@lokey
lokey requested a review from SumanthPuram July 19, 2019 14:50
Comment thread config/config.go
"fmt"
"os"

"github.com/spf13/viper"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we alias this to config?
config.Get* seems more intuitive than viper.Get*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have viper references only in config.go
Let that export GetInt, GetString, Get* methods. If we want to move away from viper, we could just make changes in config.go

Comment thread go.mod Outdated

require (
github.com/kr/pretty v0.1.0 // indirect
cloud.google.com/go v0.43.0 // indirect

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We added only 2 packages, but that added so many indirect packages.
Which one is the culprit? Can we get away with all those extra indirect packages?

@SumanthPuram SumanthPuram left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added couple of comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants