interagent / schematic

A Go point of view on JSON Schema
https://godoc.org/github.com/interagent/schematic
MIT License
321 stars 33 forks source link

Use http.Client directly #6

Closed cyberdelia closed 10 years ago

cyberdelia commented 10 years ago

Use http.Client directly rather than adding another interface. See cyberdelia/heroku-go, for a concrete example.

/cc @mmcgrana

mmcgrana commented 10 years ago

@cyberdelia nice!

mmcgrana commented 10 years ago

A couple other clients that use this approach, for reference and comparison:

https://code.google.com/p/google-api-go-client/wiki/GettingStarted https://github.com/google/go-github#authentication

cyberdelia commented 10 years ago

I like the idea to be able to reuse goauth2 and doing thing similar to it.

cyberdelia commented 10 years ago

Merged in a12e015f7b5837258af334adda0e0cfbcac98809.