awesome-patterns/ioreader/main.go

13 lines
467 B
Go
Raw Normal View History

2018-01-21 13:53:34 +03:00
package main
// https://medium.com/@matryer/golang-advent-calendar-day-seventeen-io-reader-in-depth-6f744bb4320b
// Take io.Reader when you can
// If youre designing a package or utility (even if its an internal thing that nobody will ever see)
// rather than taking in strings or []byte slices, consider taking in an io.Reader if you can for data sources.
// Because suddenly, your code will work with every type that implements io.Reader.
func main() {
}