Posted 2020-02-27Updated 2026-01-30 Jaco Liu golang / tutorial2 minutes read (About 230 words)Go:polymorphismpolymorphism多态特性多态:同一件事情由于条件不同产生的结果不同;由于 Go 语言中结构体不能相互转换,所以没有结构体类型的多态,只有基于接口的多态。这符合 Go 语言对面向对象的诠释;Read more
2026-09-06Golang 少用 Interface 的哲学:奥卡姆剃刀下的工程实践,删掉不必要的Interfacegolang / tutorial / Go-Interface / Occam-Razor