Posted in

Go语言接口设计反模式:为什么你的interface{}比interface{ Read() error }更危险?基于Go Proverbs的契约重构法

第一章:Go语言接口设计反模式: … Go语言接口设计反模式:为什么你的interface{}比interface{ Read() error }更危险?基于Go Proverbs的契约重构法Read more

Posted in

Go接口设计反模式清单(来自12个油管明星项目的Code Review报告):何时该用interface{},何时必须定义契约?

第一章:Go接口设计反模式的起源 … Go接口设计反模式清单(来自12个油管明星项目的Code Review报告):何时该用interface{},何时必须定义契约?Read more