Skip to content

feat(application-config): add application config#3

Draft
Luke-Py-Walker wants to merge 1 commit intomasterfrom
lw/config/add-application-config
Draft

feat(application-config): add application config#3
Luke-Py-Walker wants to merge 1 commit intomasterfrom
lw/config/add-application-config

Conversation

@Luke-Py-Walker
Copy link
Owner

What

adds application config

Why

need a way of handling environment configurations

@Luke-Py-Walker Luke-Py-Walker added the help wanted Extra attention is needed label Mar 25, 2020
@Luke-Py-Walker Luke-Py-Walker self-assigned this Mar 25, 2020

func TestNew(t *testing.T) {
srv := New()
app, err := application.New()
Copy link
Owner Author

Choose a reason for hiding this comment

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

getting this error assignment mismatch: 2 variables but 1 values

@nathankhuu any idea what's happening? I thought it was a language convention...

Copy link
Collaborator

Choose a reason for hiding this comment

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

um with my limited knowledge of go lol, i think it's because you're returning only 1 thing?

return App{cfg}

i think you'll add another thing to return in the next part of goyagi
Screen Shot 2020-03-25 at 2 31 45 PM

Copy link
Owner Author

Choose a reason for hiding this comment

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

lol I think it was just forgotten in this section... I'll add it

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

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants