Skip to content

Clean up API package.#157

Merged
Tonkpils merged 2 commits intoexercism:masterfrom
Tonkpils:api-client
Jan 23, 2015
Merged

Clean up API package.#157
Tonkpils merged 2 commits intoexercism:masterfrom
Tonkpils:api-client

Conversation

@Tonkpils
Copy link
Copy Markdown
Contributor

Use an API Client from the cmd package
Have functions form up their own urls and give them parameters they need

I wanted to get this proof of concept here to get some feedback. Meanwhile, I'll write some tests around this new structure.

Use an API Client from the cmd package
Have functions form up their own urls and give them parameters they need
Comment thread api/api.go
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.

Much more idiomatic!

@kytrinyx
Copy link
Copy Markdown
Member

This looks much, much cleaner. I would say go for it.

Tonkpils added a commit that referenced this pull request Jan 23, 2015
@Tonkpils Tonkpils merged commit 400f507 into exercism:master Jan 23, 2015
@Tonkpils
Copy link
Copy Markdown
Contributor Author

I'll keep adding tests as I go but the main idea is there.

@Tonkpils Tonkpils deleted the api-client branch January 23, 2015 21:20
@lcowell
Copy link
Copy Markdown
Contributor

lcowell commented Jan 23, 2015

Awesome! Don't forget to give yourself some credit in the changelog.

@kytrinyx
Copy link
Copy Markdown
Member

I've added an entry to the changelog for this. Thanks!

Tonkpils added a commit that referenced this pull request Jan 28, 2015
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.

3 participants