Open in app

Sign In

Write

Sign In

Cyril David
Cyril David

111 Followers

Home

About

Nov 28, 2020

building http based clients in Go

When I came from the very dynamic world of ruby, my first approach to designing HTTP clients in go was to think about mocking similar to what I was used to in Ruby. …

Golang

2 min read

Golang

2 min read


Nov 21, 2020

Using the net/http package in go

When I started picking up the go language years ago, things that stood out to me immediately were the io and net/http packages. Both of those packages were extremely well done and minimal in the amount of interfaces they exposed to the user. What I love about net/http The two things which stand out for…

Golang

2 min read

Golang

2 min read


Nov 14, 2020

Dependency Injection in Go

When I mention dependency injection to folks who have Java or .NET backgrounds it usually invokes a few sets of questions — to which my usual response is: It’s likely not as sophisticated as what you’re thinking — and it doesn’t have to be! While there are methods to use…

Golang

3 min read

Golang

3 min read


Mar 27, 2020

atomically closing termination channels in Go

One of the most prevalent patterns when managing the lifecycle of goroutines in Go is to have a done channel. Here’s a quick example showing this in action: done := make(chan struct{}) for { select { case <-done: return case job := <-jobs: // execute job } } In fact…

Golang

2 min read

Golang

2 min read

Cyril David

Cyril David

111 Followers

software engineer at auth0, writing code for humans, with humans.

Following
  • Jason Fried

    Jason Fried

  • Dan Cederholm

    Dan Cederholm

  • Dean Michael Berris

    Dean Michael Berris

  • Ev Williams

    Ev Williams

  • Jamu Kakar

    Jamu Kakar

See all (81)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech