When we speak about design patterns in Go, we are not copying the Gang of Four book into a language that does not use inheritance. Go solves the same design problems that Java or C# developers face, but it uses different tools. It prefers small interfaces, functions as values, simple composition, and a concurrency model built into the language.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Design Patterns in Go: Building Maintainable Enterprise Systems

  • Saeed Shahsavan

摘要

When we speak about design patterns in Go, we are not copying the Gang of Four book into a language that does not use inheritance. Go solves the same design problems that Java or C# developers face, but it uses different tools. It prefers small interfaces, functions as values, simple composition, and a concurrency model built into the language.