amimof / huego

An extensive Philips Hue client library for Go with an emphasis on simplicity
MIT License
250 stars 36 forks source link

Use default http client #35

Closed duhruh closed 3 years ago

duhruh commented 3 years ago

I think it's useful to use the default client here, it allows us to instrument our own client if need be. This is just the simplest way to accomplish this. Ideally I would like to pass this in via a struct type field, but didn't wanna deal with the refactor overhead of that.

codecov-io commented 3 years ago

Codecov Report

Merging #35 (d006945) into master (9410002) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   68.35%   68.35%           
=======================================
  Files           5        5           
  Lines        1163     1163           
=======================================
  Hits          795      795           
  Misses        201      201           
  Partials      167      167           
Impacted Files Coverage Δ
huego.go 74.54% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9410002...d006945. Read the comment docs.

amimof commented 3 years ago

@duhruh Thanks for this 👏 Looks good to me.

yunginnanet commented 2 years ago

Ideally I would like to pass this in via a struct type field, but didn't wanna deal with the refactor overhead of that.

Good news, I did it for you! https://github.com/amimof/huego/pull/53