This “sans IO” pattern is alien to me as a Go developer, because this is just how we do things by default in Go. Accept interfaces, return structs. Most libraries are already IO agnostic because they take io.Reader or io.Writer interfaces. I couldn’t imagine doing it any other way.
This “sans IO” pattern is alien to me as a Go developer, because this is just how we do things by default in Go. Accept interfaces, return structs. Most libraries are already IO agnostic because they take io.Reader or io.Writer interfaces. I couldn’t imagine doing it any other way.