Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am phritz on github.
  • I am phritz (https://keybase.io/phritz) on keybase.
  • I have a public key ASDtap2IRksYH1557AgWKr9qOTUwR9p8pDewWQPwwQp3Ego

To claim this, I am signing this object:

@phritz
phritz / example.go
Created February 19, 2018 19:33
pure function DI pattern
package example
// This is the function you want to test. It has as a depdendency a pure
// function, foo, that you would like to control for tests.
func doSomeWork() int {
y := 0
// ...
x := fooFunc(y)
// ...
return x